Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Simple solution in Clear category for End Zeros by Nice_Kot
def end_zeros(num: int) -> int:
list_num = reversed(list(str(num)))
# list_num = list(str(num)).reverse
r = 0
for i in list_num:
if i == '0':
r += 1
else:
break
return r
Jan. 8, 2021