Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
End Zeros - improved again solution in Clear category for End Zeros by ddavidse
def end_zeros(num: int) -> int:
s = str(num)
count = 0
index = -1
while index >= -len(s):
if s[index] == '0':
count += 1
index -= 1
else:
break
return count
Jan. 6, 2021