Problem 1942 · Medium

The Number of the Smallest Unoccupied Chair

Find the smallest chair number used by a target friend when friends arrive and leave at given times. The visual shows chairs filling and freeing in time order, with the target's chair highlighted.

Open the interactive visualisation