How to get recursion correct?

Hello! I’m a b.tech final year student, I solved so many questions based on trees and recursion(specifically DP is most annoying). Still! I’m unable to solve the new questions I encountered! I feel like I didn’t understand the recursion correctly. Can u help me How to overcome my problem?

hello @hemu1999

a)

first finish the recursion playlist of the course. then try to solve all given assignments .
and then solve questions from leetcode / gfg .
after doing all these things u will get comfortable with recusion.

b)

see dp is recursion only with one additional table . so again u need improve ur understanding of recusion. (try to solve dp problems with top down approach u will find it easier)

c)

it is very common thing happens with everyone,
practice more questions of all types so that ur mind can map the new questions with previously solved question.
also while practicing dont direclty jump on solution , give some time on thinking of approach (take small test cases and try to frame logic) . if u stuck then only see solution

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.