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.
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.