Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Chr() that Base solution in Creative category for Integer Palindrome by paf
def int_palindrome(number: int, B: int) -> bool:
n = number
new_num = str()
while n:
new_num += chr(48+n%B)
n = n//B
return new_num == new_num[::-1]
March 7, 2023
Comments: