问问谁会这道算法的面试题?# JobHunting - 待字闺中
z*1
1 楼
Design a data structure to track whether a given number is in a collection.
The structure must be memory efficient, able to house all the numbers
possible with an unsigned long long, alow adding numbers to the set in
constant time, and testing whether a number is in the set in constant time。
The structure must be memory efficient, able to house all the numbers
possible with an unsigned long long, alow adding numbers to the set in
constant time, and testing whether a number is in the set in constant time。