Problem 1937 · Medium

Maximum Number of Points with Cost

Choose one cell per row to maximize the total value minus the horizontal distance paid between consecutive rows. The visual shows a row-by-row grid where each cell's best total is carried from the row above with left and right sweeps.

Open the interactive visualisation