4 ms·
In the final log10 version, can't you just solve both problems at once by adding 1 to the input? math.ceil(math.log10(x+1))
by Robin_Message 2y ago
In the final log10 version, can't you just solve both problems at once by adding 1 to the input?
math.ceil(math.log10(x+1))