9. Palindrome Number (E)
https://leetcode.com/problems/palindrome-number/
Given an integer x
, return true
if x
is palindrome integer.
An integer is a palindrome when it reads the same backward as forward.
For example,
121
is a palindrome while123
is not.
Example 1:
Example 2:
Example 3:
Constraints:
-231 <= x <= 231 - 1
Follow up: Could you solve it without converting the integer to a string?
Solution:
Last updated