Design a Phone Directory which supports the following operations:
get: Provide a number which is not assigned to anyone.
check: Check if a number is available or not.
release: Recycle or release a number.
Example:
解法1:
用一个hashset存储号码。get的时候用directory.iterator().next()
来得到下一个数字。
C++
Java