TechniqueLessonSoftware engineeringDecision-making
In dynamic programming the hard part is finding the subproblem, not the memoisation
Reducible · 5 Simple Steps for Solving Dynamic Programming Problems
The idea
Candidates learn dynamic programming as a technique for caching results, and then fail the problems because caching was never the difficulty. Reducible's approach starts earlier: find the subproblem, the smaller version of the question whose answer the larger one is built from, and the relationship between subproblems, before touching an implementation. Once the recurrence is written down, memoisation is mechanical. The lesson transfers beyond coding interviews. Most hard problems are hard because the decomposition is not obvious, and the work is in finding the structure rather than in executing on it.
Find the subproblem and the recurrence first; the implementation is mechanical once the structure is clear.
When it works
Coding interviews, and any problem whose difficulty is in the decomposition.
When it may fail
Not every problem has a clean recurrence, and recognising which pattern applies is itself a skill that needs practice across many problems. The method helps once you have guessed the pattern.
How to use it
On a dynamic programming question, spend the first minutes saying out loud what a smaller version of the problem looks like and how the answer to it feeds the full one. Write the recurrence on the whiteboard before any code.
Where it came from
The source’s claim
Reducible finds the subproblem and the relationship between subproblems before touching an implementation.
What is checked
- Checked against the clip, reviewed 2026-10-16.
- The exact place in the source is located: 0:00 to 6:51.
Connected ideas
Says something similar
An index turns a table scan into a handful of page reads, paid for in write speed and diskAn index buys read speed with write speed and disk; add one for the query you run most and remove the ones you never use.
This idea appears in
The concepts it carries, and how many works in Atlas carry each one.
Put it to work on L3VLUP
More like this
- Post-mortemCapital allocationDocumentary
Financial discipline applied without limit eventually eats the engineering
Cost discipline has a limit, and the cost of crossing it arrives years after the reward for approaching it.
From Downfall: The Case Against Boeing · 2022
- Case studyMarketsSeries
A short squeeze is a funding problem before it is a price problem
Settlement takes days, and the collateral call arrives before the trade clears. That gap is where a squeeze does its damage.
From Eat the Rich: The GameStop Saga · 2022