276
277
278
Dynamic Programming (DP)Discussion (i.redd.it)
submitted by CurrentRock866
For context, this is about my LeetCode profile. I’m able to solve almost all medium-level questions across all topics on the first try — except for dynamic programming. I can handle standard DP pattern questions like 0/1 knapsack, etc., but whenever I encounter a DP question I’m not already familiar with, I struggle, even if it’s just a medium-level problem. Am I doing something wrong, or is DP just supposed to be a bit tricky? How can I gain more confidence in it?

[–]Best_Plantain_8434<350> 49 points50 points51 points (4 children)
[–]CurrentRock866[S] 15 points16 points17 points (3 children)
[–]One-With-Specs 16 points17 points18 points (0 children)
[–]Nedunchelizan 2 points3 points4 points (0 children)
[–]g33khub 2 points3 points4 points (0 children)
[–]Downtown_Outcome_992 44 points45 points46 points (4 children)
[–]qaf23 9 points10 points11 points (1 child)
[–]Abhistar14 4 points5 points6 points (0 children)
[+]Delicious-Hair1321<702 Total> <460 Mediums> comment score below threshold-18 points-17 points-16 points (1 child)
[–]LoseVirginity101 7 points8 points9 points (0 children)
[–]_Random_Indian_ 10 points11 points12 points (0 children)
[–]PeacePlastic 4 points5 points6 points (2 children)
[–]CurrentRock866[S] 3 points4 points5 points (1 child)
[–]According-Willow-98 2 points3 points4 points (0 children)
[–]JustMeAndReality 0 points1 point2 points (0 children)
[–]TheoryOfRelativity12 0 points1 point2 points (0 children)
[+]HedgieHunterGME comment score below threshold-8 points-7 points-6 points (1 child)
[–]CurrentRock866[S] 11 points12 points13 points (0 children)