Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Reverse Integer by tokiojapan55
def reverse_digits(num: int) -> int:
return int("".join(reversed(list(str(abs(num)))))) * [1, -1][num < 0]
Nov. 22, 2023