Problem 3148 · Medium

Maximum Difference Score in a Grid

Move right or down; the score of a path is its end value minus its start value, so track the smallest value reachable from above or the left.

Open the interactive visualisation