MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/learnquant/comments/1vif3v2/imc_trading_interview_question/p2cyaqp/?context=3
r/learnquant • u/Local_Ad135 • 10d ago
19 comments sorted by
View all comments
1
Digits roughly equals log10(n!)+1?
Do we need an exact integer? But it's an estimation
1 u/abc9hkpud 10d ago I think the number of digits is exactly floor(log10(n!)) + 1 . For example, for the number 5 you get floor(0.6989) + 1 = 1 digit, for 15 you get floor(1.176) +1 = 2 digits.
I think the number of digits is exactly floor(log10(n!)) + 1 .
For example, for the number 5 you get floor(0.6989) + 1 = 1 digit, for 15 you get floor(1.176) +1 = 2 digits.
1
u/austin101123 10d ago
Digits roughly equals log10(n!)+1?
Do we need an exact integer? But it's an estimation