Problem 3119 · Medium

Maximum Number of Potholes That Can Be Fixed

Fix the shortest runs of potholes first, then spend what is left on a partial group of the next run.

Open the interactive visualisation