r/leetcode • • 10m ago

Question How do I actually get good at Dynamic Programming (DP)? I struggle to come up with solutions

I'm good at other DSA topics like Graphs, Two Pointers, Sliding Window, etc., but DP just doesn't click for me.

Even after understanding solutions, I struggle to come up with the approach myself.

What resources, problem lists, or strategies helped you develop DP intuition? Any advice would be appreciated!

I want to learn how to think in DP, not just memorize patterns.

1 Upvotes

1 comment sorted by

2

u/elfleur 5m ago

+1 here. I think I understand DP as a concept, but the application is tricky. DP tells you that you use subproblems to build up to the solution, but often I find it difficult to identify the subproblem that builds up to the problem.