Digits in 99^99 Revealed
Number of digits in ninety nine power ninety nine is a medium quant interview question on Brain Teasers, reported to have been seen at DRW and WorldQuant.
MyQuantPartner is not affiliated with, endorsed by, or sponsored by these companies, and all trademarks belong to their respective owners.
This brain teaser is about understanding the size of an enormous power without actually computing it. In quant prep, such questions check whether you can reason about magnitudes and the behavior of exponential growth in base 10. Instead of brute-force calculation, you are expected to connect the notion of "how big" a number is to its representation in decimal form and interpret that connection precisely.
It trains your intuition for logarithms, orders of magnitude, and their relationship with digit counts. You practice translating a power into a scale, then into a concrete property of its decimal expression. This kind of quant interview question sharpens mental flexibility with exponents and logs, concepts that appear constantly in models, calibration, and risk calculations.
This matters in quant interviews because it reveals whether you truly understand exponential scaling, not just symbolic rules. Interviewers want candidates who can estimate, compare, and sanity-check huge numbers quickly, a key skill in quantitative finance. On MyQuantPartner, practicing such puzzles strengthens the logical and numerical instincts that top quant interviews quietly demand.
What it tests
The number of digits in a positive integer is fundamentally linked to the base-10 logarithm of the number: for any positive integer $N$, the number of digits is $\lfloor \log_{10} N \rfloor + 1$. This arises because the logarithm measures the order of magnitude of a number, and each increase by 1 in $\log_{10} N$ corresponds to multiplying $N$ by 10, thus adding a digit. For numbers expressed as powers, such as $a^b$, the logarithm simplifies to $b \log_{10} a$, making it possible to estimate the digit count without direct computation. This principle holds because the decimal system is exponential, and the logarithm is the inverse operation to exponentiation, mapping multiplicative growth to additive intervals. The floor function is necessary because the logarithm gives the position of the highest digit, and only when the number crosses a new power of 10 does the digit count increase.
Practise this question with written feedback, or hear it in a spoken mock interview.
Get started free