Top "Hashset" questions

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

Is there an AddRange equivalent for a HashSet in C#

With a list you can do: list.AddRange(otherCollection); There is no add range method in a HashSet. What is …

c# collections hashset addrange
HashSet<T> versus Dictionary<K, V> w.r.t searching time to find if an item exists

HashSet<T> t = new HashSet<T>(); // add 10 million items Dictionary<K, V> t = new …

.net performance dictionary hashset
What is the JavaScript equivalent to a C# HashSet?

I have a list of a few thousand integer keys. The only thing I need to do with this list …

javascript jquery hashset
is the Java HashMap keySet() iteration order consistent?

I understand that the Set returned from a Map's keySet() method does not guarantee any particular order. My question is, …

java iteration hashmap hashset
How can I convert a Java HashSet<Integer> to a primitive int array?

I've got a HashSet<Integer> with a bunch of Integers in it. I want to turn it into …

java arrays int hashset
Would a Java HashSet<String>'s contains() method test equality of the strings or object identity?

Let's say I have this code in Java: HashSet<String> wordSet = new HashSet<String>(); String a = "…

java string reference hashset
Hash Set and Array List performances

I have implemented a method which simply loops around a set of CSV files that contain data on a number …

java performance algorithm arraylist hashset
Find the Biggest number in HashSet/HashMap java

I would like to find the biggest number in HashSet and HashMap. Say I have the number [22,6763,32,42,33] in my HashSet …

java hashmap hashset
Converting from HashSet<String> to String[]

What's the best way to convert HashSet<String> to String[]?

java arrays hashset
How to convert List<T> to HashSet<T> in C#?

I have a List that has duplicates of objects. To solve that, I need to convert the List into a …

c# list hashset