๐ฎ Recursion (Practice)
Companion to the Recursion & The Call Stack guide. Practice recursion and see memoization collapse exponential work. Edit and run the code right here โ it executes in your browser.
๐ Your turnโ
Loading editorโฆ
๐ง Challenge yourselfโ
- Count calls for fib_fast โ why is it O(n)?
- Write recursive factorial, then convert to iterative.
- What causes a RecursionError, and how does tail-call style help?
Continue the learning path โ Python Internals Numpy Memory