Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Without using strings solution in Creative category for End Zeros by rodka81
from math import log10, floor
def end_zeros(num: int) -> int:
if num == 0:
return 1
n = floor(log10(num))
while n > 0:
if not num % 10**n:
return n
n -= 1
return n
Feb. 28, 2020
Comments: