Top "Hashset" questions

A HashSet encapsulates operations that allow for the comparison of elements in collections.

Convert a HashSet<T> to an array in .NET

How do I convert a HashSet<T> to an array in .NET?

.net arrays hashset
Make HashSet<string> case-insensitive

I have method with HashSet parameter. And I need to do case-insensitive Contains within it: public void DoSomething(HashSet<…

c# .net hashset
HashSet Iterating While Removing Items in C#

I have a hashset in C# that I'm removing from if a condition is met while iterating though the hashset …

c# hashset
Why can't I retrieve an item from a HashSet without enumeration?

I'm looking for insight into the heads of HashSet designers. As far as I am aware, my question applies to …

c# java hashset
Hashtable, HashMap, HashSet , hash table concept in Java collection framework

I am learning Java Collection Framework and got moderated understanding. Now, when I am going a bit further I got …

java hash hashmap hashtable hashset
Why is HashMap faster than HashSet?

I have been reading/researching the reason why HashMapis faster than HashSet. I am not quite understanding the following statements: …

java performance hashmap hashset
What is the lookup time complexity of HashSet<T>(IEqualityComparer<T>)?

In C#.NET, I like using HashSets because of their supposed O(1) time complexity for lookups. If I have a …

c# runtime complexity-theory hashset
Iteration order of HashSet

If every object added to a java.util.HashSet implements Object.equals() and Object.hashCode() in a deterministic fashion, is …

java algorithm collections hashset
Is HashMap internally implemented in Java using LinkedList or Array?

How is HashMap internally implemented? I read somewhere that it uses LinkedList while other places it mentions Arrays. I tried …

java arrays linked-list hashmap hashset
HashSet that preserves ordering

I need a HashSet that preserves insertion ordering, are there any implementations of this in the framework?

c# .net hashset