Back to Question
Design a Phone Directory (Set/Trie)
Question Explain
Design a phone directory that allows users to check if a number exists, reserve a number, and release a number. Optimize for checking and reserving.
Start Trying This Question Simulation
Click "Start Speaking" and answer the question naturally.