Practice Palindrome Number
Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.
Problem Statement
Given an integer x, return true if x is a palindrome, and false otherwise.
Source: Palindrome Number on LeetCode. Use the original task for its coding environment and submissions.
Examples
# Example 1
Input
x = 121
Output
true
# Example 2
Input
x = -121
Output
false
# Example 3
Input
x = 10
Output
false
Constraints
-2^31 <= x <= 2^31 - 1
Related LeetCode Problems
Practice more problems similar to Palindrome Number.
Review your practice with PhantomCodeAI
After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.