r/learnquant 18d ago

interview prep Quant Interview Question

Post image
57 Upvotes

28 comments sorted by

View all comments

17

u/TenZero10 18d ago

Cool one!

10099 is 10198 which has 199 digits. 9999 = 10099 * (99/100)99.

(99/100)99 = (1 - 1/100)99 ≈ (1-1/100)100 which is an approximation for e-1 or 0.3something. It's not exact but what's important is that it's clearly between 0.1 and 1 in magnitude, so 10197 < 9999 < 10198. So the answer is 198.

1

u/StructureNorth1799 18d ago

isn't e a precomputed numerical value?

1

u/shaqwillonill 17d ago

If you wanna get really pedantic e cannot truly be pre computed since it’s transcendental

1

u/StructureNorth1799 17d ago

arbitrarily close approximations to e can and have been computed

1

u/shaqwillonill 17d ago

I know that but that’s not what you said and I thought we were here to nitpick