Given an integer, write a function that returns true if the given number is palindrome, else false. For example, 12321 is palindrome, but 1451 is not palindrome.
Let the given number be num. A simple method for this problem is to first reverse digits of num, then compare the reverse of num with num. If both are same, then return true, else false.
Input : 12221 Output : true Input : 12345 Output : false
Below is the required implementation:
- Check if a number is Palindrome
- Program to check the number is Palindrome or not
- Check if number is palindrome or not in Octal
- Bash program to check if the Number is a Palindrome
- To check a number is palindrome or not without using any extra space
- Recursive program to check if number is palindrome or not
- Generate number with given operation and check if it is palindrome
- Check if a number with even number of digits is palindrome or not
- Check if actual binary representation of a number is palindrome
- Difference between SQL and PLSQL
- Check whether a string is palindrome or not in PL/SQL
- Check if any anagram of a string is palindrome or not
- Queries to check if substring[L...R] is palindrome or not
- C Program to Check if a Given String is Palindrome
- Check if it is possible to create a palindrome string from given N
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.