min-cost-loop-invariant

Status: IN

After processing index `i`, `prev1` holds the minimum cost to reach and pay step `i`, and `prev2` holds the same for step `i-1`.

Source: entries/2026/06/06/min-cost-climbing-stairs-solution.md

Depended on by

JSON