InterviewBit Academy is now Scaler!
Learn Tech Skills from Scratch @ Scaler EDGE

Palindrome Integer

Determine whether an integer is a palindrome. Do this without extra space.

A palindrome integer is an integer x for which reverse(x) = x where reverse(x) is x with its digit reversed.
Negative numbers are not palindromic.

Example :

Input : 12121
Output : True

Input : 123
Output : False
NOTE: You only need to implement the given function. Do not read input, instead use the arguments to the function. Do not print the output, instead return values as specified. Still have a doubt? Checkout Sample Codes for more details.
Start solving Palindrome Integer on Interview Code Editor
Sign Up
to access hints and editorial solutions for Palindrome Integer
Asked In:


Click here to start solving coding interview questions