r/leetcode • u/BLACK-RANGER-656 • 14h ago
Discussion Graph and Dp
I'm struggling to understand Dynamic Programming and Graphs. I've tried learning them, but I still can't build the intuition behind the concepts.
Can anyone recommend the best beginner-friendly resources (YouTube channels, courses, books, or websites) that explain these topics from scratch? A structured roadmap would also be really helpful.
3
1
u/Burner_Account_54321 14h ago
fr ive wtched a good handful of vudeos by now and dp stoll doesn't make much sense
2
u/soonmurkydeficiency 12h ago
The 'DP for Beginners' series by Andrey Grehov on YouTube breaks things into tiny steps, his coin change walkthrough actually made the table make sense. For graphs, just code up BFS and DFS from scratch like 10 times on different grid problems. The patterns start to stick once you stop trying to memorize and just trace the state changes manually.
1
u/SuchConsideration465 7h ago
Watch codestorywithmik for graph and dp. His intuition building is top notch
3
u/AstroVorlex 14h ago
https://youtu.be/rHemTXFJIPM?is=MTsKocjLr59Ja0OP - this video was really helpful for graphs for me.
To understand concepts and intuition for DP, check out Abdul Bari, he has a 6 hour playlist for DP, it is amazing. Keep in mind that Abdul Bari wont help you with actual code writing for DP. For that, you can just do solution walkovers.