Top "Hashmap" questions

A data structure that uses a hash function to map identifying values, known as keys, to their associated values

What happens when a duplicate key is put into a HashMap?

If I pass the same key multiple times to HashMap’s put method, what happens to the original value? And …

java hashmap hashtable
How to remove a key from Hash and get the remaining hash in Ruby/Rails?

To add a new pair to Hash I do: {:a => 1, :b => 2}.merge!({:c => 3}) #=> {:a => 1, :b =&…

ruby-on-rails ruby ruby-on-rails-3 hashmap ruby-hash
Java: How to convert List to Map

Recently I have conversation with a colleague about what would be the optimal way to convert List to Map in …

java list data-structures hashmap data-conversion
Hash Map in Python

I want to implement a HashMap in Python. I want to ask a user for an input. depending on his …

python hashmap
C# Java HashMap equivalent

Coming from a Java world into a C# one is there a HashMap equivalent? If not what would you recommend?

c# java hashmap
Sorting HashMap by values

I need to sort my HashMap according to the values stored in it. The HashMap contains the contacts name stored …

java sorting hashmap
How to sort a HashMap in Java

How are we able to sort a HashMap<key, ArrayList>? I want to sort on the basis of …

java sorting hashmap
What is the best way to use a HashMap in C++?

I know that STL has a HashMap API, but I cannot find any good and thorough documentation with good examples …

c++ hashmap
How to preserve insertion order in HashMap?

I'm using a HashMap. When I iterate over the map, the data is returned in (often the same) random order. …

java hashmap
Java Compare Two Lists

I have two lists ( not java lists, you can say two columns) For example **List 1** **Lists 2** milan hafil dingo iga …

java list comparison hashmap