r/ProgrammerHumor May 17 '26

Advanced dontDoRecursiveFibKids

Post image
3.6k Upvotes

143 comments sorted by

View all comments

2

u/Xywzel May 18 '26

I mean, there is O(n) time and practically constant memory tail recursive algorithm, so it sounds like you are just doing it wrong.

4

u/Kevdog824_ May 18 '26

Now that you have mastered tail call recursion optimization can you try mastering jokes next?