Problems

9. Palindrome Number

EasyMathMicrosoft

Determine whether the integer x is a palindrome.

Example 1:

Input: x = 121
Output: true

Example 2:

Input: x = -121
Output: false

Constraints:

  • -2^31 <= x <= 2^31 - 1
Core code mode
● Auto-savedLine 1, column 1