Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
15-liner: lightning - up to 10**10 solution in Speedy category for Number Length by przemyslaw.daniel
from bisect import bisect
K = [0,
10,
100,
1000,
10000,
100000,
1000000,
10000000,
100000000,
1000000000,
10000000000]
def number_length(n):
return bisect(K, n)
Feb. 27, 2020
Comments: