Dev
Mentor
Coach Interview AI
Mock Interview AI
Coding Problems
Blog
Pricing
Toggle theme
Sign In
Get Started
Toggle theme
Loading...
Loading...
For the best coding experience, use a desktop browser.
Easy
Math
Palindrome Number
Examples
Input:
x = 121
Output:
true
Sample Test Cases
Case 1 Input:
121
Expected:
true
Case 2 Input:
-121
Expected:
false
Reset
Run
Submit
Loading editor...
Test Case
Output
Submission
Case 1 Input:
121
Expected:
true
Case 2 Input:
-121
Expected:
false
Return true if integer is palindrome.