2 ms·
Why? How can recursion be hard to understand? I don't understand.
by qwerty456127 5y ago
Why? How can recursion be hard to understand? I don't understand.
- djur 5y agoThe difficult thing isn't the concept of a function being defined in terms of itself, but translating between iterative and recursive versions of the same algorithm. Recursive algorithms can feel "backwards" when you're used to iteration. Real-world procedures are much more likely to be described iteratively than recursively.