MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x58u7b/howprogramminghaschanged/pgp4lkv/?context=3
r/ProgrammerHumor • u/shizzy0 • Oct 13 '26
108 comments sorted by
View all comments
Show parent comment
4
But if you allocate on the heap like this, then you get O(1) performance whenever you call fib again with an equal or lesser value of n :D
fib
n
View all comments
Show parent comment
4
u/ZachAttack6089 Oct 14 '26
But if you allocate on the heap like this, then you get O(1) performance whenever you call
fibagain with an equal or lesser value ofn:D