Top "Hashmap" questions

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

HashMap and int as key

I am trying to build a HashMap which will have integer as keys and objects as values. My syntax is: …

java hashmap
What is the significance of load factor in HashMap?

HashMap has two important properties: size and load factor. I went through the Java documentation and it says 0.75f is …

java hashmap load-factor
Array to Hash Ruby

Okay so here's the deal, I've been googling for ages to find a solution to this and while there are …

ruby arrays hashmap
Sort hash by key, return hash in Ruby

Would this be the best way to sort a hash and return Hash object (instead of Array): h = {"a"=>1, "…

ruby sorting hashmap
Android - Get value from HashMap

I have tried to search on HashMap in Android, but getting problem: Consider this example: HashMap<String, String> …

java android hashmap android-widget
Is it possible to get element from HashMap by its position?

How to retrieve an element from HashMap by its position, is it possible at all?

java hashmap
Best way to convert strings to symbols in hash

What's the (fastest/cleanest/straightforward) way to convert all keys in a hash from strings to symbols in Ruby? This …

ruby hashmap
Is a Python dictionary an example of a hash table?

One of the basic data structures in Python is the dictionary, which allows one to record "keys" for looking up "…

python hash dictionary hashmap hashtable
Hashmap with Streams in Java 8 Streams to collect value of Map

Let consider a hashmap Map<Integer, List> id1 = new HashMap<Integer,List>(); I inserted some values …

java hashmap java-8 collectors
How to putAll on Java hashMap contents of one to another, but not replace existing keys and values?

I need to copy all keys and values from one A HashMap onto another one B, but not to replace …

java map hashmap