r/codeforces • u/Federal_Tackle3053 Expert • Jun 07 '26
query Resources for DP
Hello guys I am cse undergrad and currently I am a specialist on cf but I can't able to solve dynamic programming questions.
Pls tell me some resources to practice or anything.
I want to master dp in the upcoming 1-2 months.
8
u/Subject-Carry-2314 Jun 07 '26
I think repovive Dynamic Programming roadmap can help you understand it better, for approach, types, and when to use which dp.
6
5
Jun 07 '26
Yo I am also tryna learn dp , done cses till counting towers , tbh I am not able to comeup with those ideas feels boring asf as I ain't able to do shit but I guess it just comes after solving a lot of problems in this case
1
u/Federal_Tackle3053 Expert Jun 07 '26
Same with me actually I solved (not solved I saw solutions) something 30-40 problems still I can't think about the dp transition and approach
3
u/Difficult_Box5009 Jun 08 '26
This low key put a smile on my face
1
u/Federal_Tackle3053 Expert Jun 08 '26
Damn how
1
u/Difficult_Box5009 Jun 08 '26
Made me realize how much I need to go out or need a change in environment
21
u/The-BlackAngel Jun 07 '26
The go-to resource for all things... USACO
CSES DP Section is also very helpful
But make sure you have some basic understanding of DP before starting these
9
6
u/New_Bench Jun 08 '26
There is a dp course by sanyam garg. It's very conceptual.
Then try solving by dp patterns. You'll find patterns specific to cf or leetcode. Google search for blogs pertaining to each. Then there is an atcoder educational contest for dp. Also try william lin for the atcoder contest approaches on YouTube. Another person to follow is errichto. He's damn good at explaining.
Do all, it'll help you with identifying patterns. And then, you're good to go.
Keep learning with new questions and add to your knowledge base.
One important thing is to understand each pattern and concept and not rote learn blindly.
3
u/Marwanthe0 Jun 08 '26
At the same stage, specialist, solved 150+ dp problems in codeforces, cses and atcoder dp, still i struggle when facing a new problem of 1500+ dp problem in cf. Also share with me if you find any effective resource.
2
u/Purple-Community4883 Jun 09 '26
Everything is a waste ......ig you solve striver dp probs if you are a specialist .... then do cses then do 1600 to 1700 dp probs
1
-14
u/No_Antelope_5869 Expert Jun 07 '26
dawg how man Im pupil and I can solve dp problems
3
u/Federal_Tackle3053 Expert Jun 07 '26
You are legend 💪.....
-9
3
Jun 08 '26
[removed] — view removed comment
3
u/Federal_Tackle3053 Expert Jun 08 '26
Good Comparison. I mean I don't want six packs just want to be normal fit (to solve basic and medium dp questions)
4
Jun 08 '26
[removed] — view removed comment
1
u/Federal_Tackle3053 Expert Jun 08 '26
Which book will you recommend? For graph , dp, discrete mathematics, probability and pnc ?
3
Jun 08 '26
[removed] — view removed comment
1
u/Federal_Tackle3053 Expert Jun 08 '26
Thanks I got it . Pnc means permutations and combinations
Btw currently are you working in HFT ?
3
18
u/whoashish115 Expert Jun 07 '26
For being good at DP, you should first be good at recursion-recursion is the foundation of DP.
As a beginner, don't blindly start with tabulation (bottom-up DP). It can be difficult to understand without first developing the recursive intuition behind the problem.
Instead, practice solving problems using recursion, then add memoization to optimize them. After that, try converting the same memoized recursion into tabulation. This process is what really helps you build strong DP skills.
A few resources I would recommend:
https://www.youtube.com/playlist?list=PL_z_8CaSLPWekqhdCPmFohncHwz8TY2Go
https://www.youtube.com/playlist?list=PLtfqa971vD5FQIQuAaZe4thK-QGOdAou3
https://atcoder.jp/contests/dp/tasks
https://codeforces.com/blog/entry/67679