About 50 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 implementation, these …

  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 tables to...

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

    Apr 16, 2016 · Saw the code snippet like Set<Record> instances = new HashSet<Record> (); I am wondering if Hashset is a special kind of set. Any difference between them?

  4. .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 List&lt...

  5. 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 the specified …

  6. When should I use the HashSet<T> type? - Stack Overflow

    Aug 8, 2009 · HashSet<T> is a data strucutre in the .NET framework that is a capable of representing a mathematical set as an object. In this case, it uses hash codes (the GetHashCode result of each …

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

    Here is a great example: How to implement ConcurrentHashSet in .Net The only drawback of this solution is that the type HashSet<T> doesn't officially concurrent access, even for reading …

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

    Jun 17, 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 class designed to …

  9. How do HashSets in Java work? - Stack Overflow

    Aug 27, 2013 · Possible Duplicate: How does Java hashmap work? Can someone explain to me how HashSets in java work and why they are faster than using ArrayLists?

  10. collections - What is the main difference between Hashset, Treeset and ...

    Switching to the difference between HashSet and LinkedHashSet, please note that LinkedHashSet is a subclass of HashSet. They are not sorted sets. HashSet is the fastest implementation of a set and it …