|
What made you finally get recursion? - Printable Version +- TalkativeTurtles (https://talkativeturtles.club) +-- Forum: Technology (https://talkativeturtles.club/forumdisplay.php?fid=2) +--- Forum: Programming & Development (https://talkativeturtles.club/forumdisplay.php?fid=9) +--- Thread: What made you finally get recursion? (/showthread.php?tid=120) |
What made you finally get recursion? - Zero Two - 07-02-2026 Recursion is one of those concepts where you can understand the definition but still not really get it until something clicks. For me it was tree traversal. Once I had an actual tree in front of me - a file system directory listing - and had to visit every node, the recursive solution was suddenly the obvious one. Not the clever one. The obvious one. Before that I was mentally unrolling the stack every time I saw a recursive function, which made it feel complex. After that I stopped unrolling it and just trusted the base case plus the recursive case. Was there a specific problem or explanation that made it click for you? Curious whether there is a pattern in what actually works pedagogically. |