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