about | help | code help+videos | done | prefs |
An integer is a palindrome if the digits read the same forward and backward. For example, 34843 and 99 and 1001 are palindromes, but 45656 and 2727 are not. Return true if the given positive integer is a palindrome, and false otherwise. The integer will not end in 0. Consider solving the reverseNumber problem before trying to solve this problem. isPalindrome(34843) → true isPalindrome(99) → true isPalindrome(1001) → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 200
Copyright Nick Parlante 2017 - privacy