Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for End Zeros by Beach.
def end_zeros(num: int) -> int:
counter = 0
for i in str(num)[::-1]:
if i != "0":
break
counter+=1
return counter
July 1, 2021
Comments: