Hash Set Basic and Implementation
OriginalAbout 965 words
When I explain each data structure, I usually separate the principles and code implementation into two articles. However, for the hash set, both the principles and implementation are discussed in this single article. Doesn't that seem strange?
Well, that's because there's not much to say about hash sets. They are basically just a simple wrap around hash tables: The keys in a hash table are essentially a hash set.
That sums it up in one sentence, but let's go into a bit more detail to give hash sets their due respect.