I finally understood recursion after 3 weeks of being completely lost. It just "clicked." For anyone else struggling don't give up.

Posted by Ok-Neighborhood4327@reddit | learnprogramming | View on Reddit | 29 comments

Three weeks ago I posted here asking why my brain couldn't wrap around recursion. I was ready to quit. Today I wrote a recursive solution to a tree traversal problem on my own, without looking it up.

What finally made it click: I stopped thinking about what the function was doing and started trusting that it would do it. Just define the base case, trust the rest.

If you're stuck on something right now. this is your sign to keep going. The click moment is real. 🙌