Problem 4025 · Medium

Minimize the Maximum Waiting Time at Synchronized Traffic Lights

Each car can use any light, so it waits zero when some light is green at its remainder and otherwise waits until the cycle restarts; the answer is the worst car.

Open the interactive visualisation