Palindrome Number

Easy
math
Problem Description

Given an integer x, return true if x is palindrome integer. An integer is a palindrome when it reads the same backward as forward.

Input Format
A single integer x
Output Format
true or false
Constraints
-2^31 <= x <= 2^31 - 1
Sample Input/Output
Input:
121
Output:
true
Explanation

121 reads as 121 from left to right and from right to left.

Solution Hints
100
Points
2000ms
Time Limit
256MB
Memory Limit
Code Editor
Register to Submit
Register to Access Code Editor

Create a free account to solve coding problems and track your progress.

Register Now
Feedback