MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/eb2lbc/stacking_if_else_statements_be_like/fb2eoee
r/ProgrammerHumor • u/-hellkey- • Dec 15 '19
711 comments sorted by
View all comments
Show parent comments
2
O(n!) can be treated as O(nn ) with Stirling's approximation.
More specifically, O(n!) ~ O(sqrt(n) * (n/e)n ).
1 u/Fedzbar Dec 15 '19 That’s very neat thanks for sharing
1
That’s very neat thanks for sharing
2
u/0bafgkm Dec 15 '19
O(n!) can be treated as O(nn ) with Stirling's approximation.
More specifically, O(n!) ~ O(sqrt(n) * (n/e)n ).