Check if a linked list is palindrome
Write a function to check if a Singly linked list is a palindrome or not. For example, the linked list 2 -> 3 -> 4 -> 5 -> 4 -> 3 -> 2 is a palindrome M -> A -> L -> A-> Y -> A -> L -> A -> M is a palindrome […]
Check if a number is a palindrome
Given an integer, write code to check if it is a palindrome or not. For example: 24342 is a palindrome but 32767 is not a palindrome. The signature of the function may be as shown below: /** Function returns 1 is num is palindrome and returns 0 otherwise. */ int checkPalindrome(int num);