This problem is simple: determine whether an int is a palindrome.
Note that negative numbers are not palindromes. Just convert the int to a character array and check directly.
Accepted on the first try.
| |
This problem is simple: determine whether an int is a palindrome.
Note that negative numbers are not palindromes. Just convert the int to a character array and check directly.
Accepted on the first try.
| |