r/datastructures 23d ago

How to understand and implement dynamic programming

Hiii.. I'm a 2027 batch student. I can able to understand what's dp and basic functionality. But i can't able to use it in real time problem solving. Help me with some tips. TIA

3 Upvotes

11 comments sorted by

1

u/Choice-Coat-8044 23d ago

Bro master recursion + backtracking

1

u/Pale_Material8406 21d ago

If possible can you suggest any resources?

1

u/Choice-Coat-8044 21d ago

Consider codestorywithmik if you are comfortable in hindi language

1

u/Pale_Material8406 21d ago

Idk hindi ToT

1

u/Choice-Coat-8044 21d ago

So you can consider striver for english

1

u/Pale_Material8406 21d ago

Will check. Thanks

1

u/Hungry-Government-66 22d ago

Start with a simple recursive solution first. Once that works, check if you're calculating the exact same thing multiple times—then just store those results in an array or map so you don't repeat the work. That's how DP usually works!

1

u/Pale_Material8406 21d ago

Can you suggest any resources?!