Pattern
2 problems in the roadmap use this pattern.
in Dynamic Programming – 1D
in Dynamic Programming – 2D & Advanced