Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
As simple as I can get it :) solution in Clear category for Integer Palindrome by dan_rue
def int_palindrome(number: int, base: int) -> bool:
nb = []
while number:
nb.append(number % base)
number = number // base
return nb == nb[::-1]
Dec. 15, 2022
Comments: