Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

hashset

What is the difference between HashSet and List?

by IT Nursery

Can you explain what is the difference between HashSet<T> and List<T> in .NET? Maybe you can explain with an example in what cases … Read more

Tags .net, difference, hashset, list

How to calculate the intersection of two sets? [duplicate]

by IT Nursery

This question already has answers here: Efficiently finding the intersection of a variable number of sets of strings (8 answers) Closed 1 year … Read more

Tags hashset, intersection, java, set

How to Iterate over a Set/HashSet without an Iterator?

by IT Nursery

How can I iterate over a Set/HashSet without the following? Iterator iter = set.iterator(); while (iter.hasNext()) { System.out.println(iter.next()); } Best Answer 8

Tags hashset, java, loops, set

Is there an AddRange equivalent for a HashSet in C#

by IT Nursery

With a list you can do: list.AddRange(otherCollection); There is no add range method in a HashSet. What is the best way to add … Read more

Tags addrange, c, collections, hashset

Define: What is a HashSet?

by IT Nursery

HashSet The C# HashSet data structure was introduced in the .NET Framework 3.5. A full list of the implemented members can be found … Read more

Tags c, hashset

Hashset vs Treeset

by IT Nursery

I’ve always loved trees, that nice O(n*log(n)) and the tidiness of them. However, every software engineer I’ve ever known has asked me pointedly … Read more

Tags hashset, java, treeset

Why there is no ConcurrentHashSet against ConcurrentHashMap

by IT Nursery

HashSet is based on HashMap. If we look at HashSet<E> implementation, everything is been managed under HashMap<E,Object>. <E> is used as a key … Read more

Tags collections, concurrency, hashmap, hashset, java

How to initialize HashSet values by construction?

by IT Nursery

I need to create a Set with initial values. Set<String> h = new HashSet<String>(); h.add(“a”); h.add(“b”); Is there a way to do this … Read more

Tags collections, constructor, hashset, initialization, java

Difference between HashSet and HashMap?

by IT Nursery

They are entirely different constructs. A HashMap is an implementation of Map. A Map maps keys to values. The key look up occurs using the hash. On the … Read more

Tags collections, hashmap, hashset, java

HashSet vs. ArrayList

by IT Nursery

When its comes to the behavior of ArrayList and HashSet they are completely different classes. ArrayList Does not validate duplicates. get() is O(1) contains() is O(n) but you have fully control over the … Read more

Tags arraylist, collections, hashset, java, set
Older posts
Page1 Page2 Next →

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery
x
x