Palindrome Number
Easy📝 Description
Given an integer x, return true if x is a palindrome, and false otherwise. An integer is a palindrome when it reads the same backward as forward. For example, 121 is a palindrome while 123 is not.
Input Format
A single integer x
Output Format
Print "true" if palindrome, "false" otherwise
Constraints
-2^31 ≤ x ≤ 2^31 - 1
🔍 Sample Input
121
✅ Sample Output
true
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run