About 7,910,000 results
Open links in new tab
  1. c# - Define: What is a HashSet? - Stack Overflow

    Dec 29, 2010 · HashSet is an unordered collection containing unique elements. It has the standard collection operations Add, Remove, Contains, but since it uses a hash-based …

  2. Difference between HashSet and HashMap? - Stack Overflow

    Apart from the fact that HashSet does not allow duplicate values, what is the difference between HashMap and HashSet in their implementation? It's a little bit vague because both use hash …

  3. How to initialize HashSet values by construction? - Stack Overflow

    Jan 11, 2010 · Yes I sometimes forget that contrary to other collections the HashSet, HashMap have a different constructor: "Constructs a new, empty set; the backing HashMap instance has …

  4. What's the difference between HashSet and Set? - Stack Overflow

    Apr 16, 2016 · 1 HashSet is a class derived from Set interface. As a derived class of Set, the HashSet attains the properties of Set. Important and the most frequently used derived classes …

  5. What is the difference between HashSet<T> and List<T>?

    Jun 18, 2011 · A HashSet<T> is a class designed to give you O(1) lookup for containment (i.e., does this collection contain a particular object, and tell me the answer fast). A List<T> is a …

  6. .net - HashSet vs. List performance - Stack Overflow

    It's clear that a search performance of the generic HashSet&lt;T&gt; class is higher than of the generic List&lt;T&gt; class. Just compare the hash-based key with the linear approach in the …

  7. Concurrent HashSet<T> in .NET Framework? - Stack Overflow

    Your implementation is correct. The .NET Framework does not provide a built-in concurrent hashset type, unfortunately. However, there are some workarounds. ConcurrentDictionary …

  8. java - HashSet vs LinkedHashSet - Stack Overflow

    Feb 16, 2017 · 41 HashSet is unordered and unsorted Set. LinkedHashSet is the ordered version of HashSet. The only difference between HashSet and LinkedHashSet is that: LinkedHashSet …

  9. How to convert linq results to HashSet or HashedSet

    How to convert linq results to HashSet or HashedSet Asked 15 years, 4 months ago Modified 2 years ago Viewed 129k times

  10. In which cases should I use a HashSet over a TreeSet?

    Java provides a LinkedHashSet, which is a HashSet with an "insertion-oriented" linked list running through it, that is, the last element in the linked list is also the most recently inserted into the …