Problem 3168 · Easy

Minimum Number of Chairs in a Waiting Room

Track how many people wait at once as E arrivals and L departures scroll by; the peak is the number of chairs needed.

Open the interactive visualisation