Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
6-liner: without str solution in Clear category for Number Length by przemyslaw.daniel
def number_length(number: int) -> int:
base, result = 10, 1
while base <= number:
base = (base << 3) + (base << 1)
result += 1
return result
Feb. 27, 2020
Comments: