Given an integer n, return true if it is a palindrome and false otherwise.
A palindrome number reads the same forwards and backwards. For example, 121 is a palindrome, but 123 is not.
Note: Negative numbers are NOT palindromes (the minus sign means they don't read the same backwards).
n = 121truen = -121falsen = 10false-10^9 <= n <= 10^9Run your code to see results
Use Cmd+Enter to run