Problem 853 · Medium

Car Fleet

Sort cars by position and count new fleets whenever a car arrives later than every fleet ahead.

Open the interactive visualisation