Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for End Zeros by erewhon
def end_zeros(num: int) -> int:
result = 0
for i in reversed(str(num)):
if i == "0":
result += 1
else:
return result
return result
June 29, 2020
Comments: