Tap here to switch tabs
Problem
Submissions

Problem: Palindrome Number

Palindrome Number asks you to return true if an integer's digits read identically from left to right and right to left, and false otherwise. Negative values are included.

Statement

Given an integer, x, return TRUE if it is a palindrome; otherwise, FALSE.

A palindrome integer is one whose digits read the same from left to right and right to left.

Constraints:

  • −2−31≤-2^{-31} \leq x ≤231−1\leq 2^{31}-1

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Palindrome Number

Palindrome Number asks you to return true if an integer's digits read identically from left to right and right to left, and false otherwise. Negative values are included.

Statement

Given an integer, x, return TRUE if it is a palindrome; otherwise, FALSE.

A palindrome integer is one whose digits read the same from left to right and right to left.

Constraints:

  • −2−31≤-2^{-31} \leq x ≤231−1\leq 2^{31}-1