Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First: compare string lengths solution in Clear category for Beginning Zeros by mccoy
def beginning_zeros(n: str) -> int:
return len(n) - len(n.lstrip("0"))
July 24, 2021