Is It Normal to Struggle With the Coin Change Problem?
Asked by
needle threader
I tried solving the coin change problem for the first time and couldn't make much progress. I had to watch several explanations before the dynamic programming approach started to make sense. Is this a normal reaction, or am I missing a fundamental idea about dynamic programming? It feels much harder than I expected.
Answers
Yes, thatโs completely normal. Dynamic programming isnโt one single techniqueโit can look very different from problem to problem. The key usually comes from identifying the state, deciding what each state means, and finding how smaller states build the current one. It takes practice before that pattern becomes intuitive.
Reply to this answer
The coin change problem can feel especially confusing because there are multiple versions and more than one valid approach. Try starting with a small target amount, manually list the best result for each amount, and look for how the answer depends on previously solved amounts. That usually makes the table and recurrence easier to understand.
Reply to this answer
Watching an explanation several times is not unusual, especially for a first DP problem. Let the idea sit for a while, then try writing the solution yourself without the video. After that, work through a few simpler problems so you can practice defining the recurrence instead of memorizing one solution.
Reply to this answer
Add your answer
Answers are reviewed before publication.
Related Discussions