Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
math.log10 solution in Creative category for Number Length by makoto_yamagata
import math
def number_length(a: int) -> int:
return int(math.log10(a)) + 1 if a else 1
Dec. 24, 2020
Comments: