Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why? How can recursion be hard to understand? I don't understand.


The 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: