Skip to content

quickestimate

bradendubois edited this page Oct 7, 2021 · 8 revisions

Quick Estimates

ID: quickestimate

Difficulty: 1.5

CPU Time: 1 second

Memory: 1024 MB

Solution

One can do some modulo division and divide the number by 10, repeating this x times until the number == 0, or one can actually consider the number as a string, and simply detect the length of the string, since that will directly correspond to its number of digits.

Clone this wiki locally