哈希集合的原理及代码实现
原创约 918 字
When I explain each data structure, I usually split the principles and code implementation into two separate articles. However, for the hash set, I am combining both the principles and implementation in this single article. You might find this a bit unusual.
Haha, that's because there's not much to say about the hash set. It's basically just a simple wrapper around the hash table: The keys of a hash table are essentially the elements of a hash set.
That one sentence pretty much sums it up. But let's go into a bit more detail.