Problem 379 · Medium

Design Phone Directory

Design a phone directory that hands out free slot numbers, checks whether a slot is free, and takes slots back. The visual moves slot numbers between a free pool and a used set.

Open the interactive visualisation