Junior Collections

What is the time complexity for adding, removing, or searching for an element in a HashSet<T>?

All these operations generally have O(1) average time complexity due to the underlying

hash table structure.

More from C# Programming Tutorial

All questions for this course