Skip to content

Race Car

A Hard coding interview problem in the 1-D Dynamic Programming pattern.

Likely pattern

1-D Dynamic Programming

Overlapping subproblems indexed by a single position.

Recognition cue: Count ways, min / max over choices at each index, and greedy fails a counterexample.

Learn first

Topics

  • Dynamic Programming
  1. 1Hard
  2. 2Hard
  3. 3Hard
  4. 4Hard
  5. 5Hard
  6. 6Hard
  7. 7Hard
  8. 8Hard