Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Beginning Zeros by wbl4126
def beginning_zeros(number: str) -> int:
cnt = 0
for s in number:
if s != '0':
break
else:
cnt += 1
return cnt
March 31, 2020
Comments: