Reported interview periodNot available
Palindrome Integer
Determine whether a signed 32-bit integer reads identically from left to right and right to left in decimal notation.
Practice focusNegative numbers are not palindromes because of the sign. A positive number ending in zero is not a palindrome unless the value itself is zero. Staged follow-ups 1. Solve without converting the number to a string. 2. Reverse only half the digits to avoid overflow and unnecessary work. 3. Generalize the check to an arbitrary base from 2 through 36.