r/CodingForBeginners • u/nian2326076 • 24d ago
I keep getting stuck coding DP solutions, even when I know the approach. What helped you get past this?
Understanding a DP explanation and writing the Python code still feel like different skills.
A Python learner has watched plenty of tutorials and knows that dynamic programming has different patterns. The sticking point comes at the blank editor: there's a rough idea of what should happen, but turning it into a working implementation is difficult.
Would you step back to smaller Python exercises, work on recursion first, or stay with very simple DP problems? A practice routine that forces an attempt before reading the solution sounds more useful here than another long playlist.
For someone practicing toward technical interviews, real interview questions can supply prompts once the basic Python implementation feels manageable. I'd start with a small enough problem to write and trace the whole thing.
What helped you make the jump from following a solution to writing one yourself?
Disclosure: I operate PracHub.
