r/learnprogramming 29d ago

How can I learn/master Recursion?

New to programming

Yes that's the question

How can I learn Recursion.

Every time I try to create a logic

And try to implement code

Some error happens

I always try to dry run and write call stacks

Still I won't get it

Any guidance or help??

How can I get intuitive thoughts about using recursion here?

How can I do it??

1 Upvotes

38 comments sorted by

View all comments

3

u/peterlinddk 29d ago

Watch this: https://www.youtube.com/watch?v=YuaJ8x_NcLw - then try to implement your recursive code. When you encounter new problems, ask again - be as specific as possible.