1D DP problems have state indexed by a single number — typically a position in an array. The recurrence usually depends on only the last one or two states, so you can reduce space from to .
Fibonacci
The "hello world" of DP. with , . Naive recursion is — exponential, because is computed many times. DP makes it time, space.
Climbing stairs
You can climb 1 or 2 stairs at a time. How many ways to climb ? Answer: . Same recurrence: ways to reach step = ways to reach (then take a 1-step) plus ways to reach (then take a 2-step).
House robber
Houses in a row; you can't rob two adjacent. Maximize loot. Recurrence: — either skip the current house or take it and add the best up to .
Longest increasing subsequence
= length of LIS ending at index . Then , with if no such . Final answer: . — and a clever patience-sorting variant gets it to .
Coin change (minimum coins)
Minimum coins to make change for from denominations . , with and unreachable amounts marked . .
Pattern
When you see "ways to do X" or "best/min/max over a sequence" with the constraint that each choice depends on the last 1-2 choices, you're looking at a 1D DP. The recurrence almost always involves max/min/+ over a tiny set of predecessors.