Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
No diggity, but digity solution in Clear category for Integer Palindrome by veky
def int_palindrome(number: int) -> bool:
original, reversed = number, 0
while number:
number, digit = divmod(number, 10)
reversed = reversed * 10 + digit
return original == reversed
Aug. 24, 2022
Comments: