Problem 2304 · Medium

Minimum Path Cost in a Grid

Add each cell value and the move cost from the value above into a row-by-row minimum over the cheapest arrivals.

Open the interactive visualisation