Top "Hashmap" questions

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

Swagger complex response model with dynamic key value hash maps

I'm struggling with the syntax of swagger to describe a response type. What I'm trying to model is a hash …

hashmap swagger swagger-2.0 swagger-editor
Is it safe to use frozen set as Dict key?

It obviously works but are there cases where two sets of same elements happen to add two entries in Dict? …

python python-2.7 hashmap frozenset
Difference between Hashtable and Collections.synchronizedMap(HashMap)

As far as I know, java.util.Hashtable synchronizes each and every method in the java.util.Map interface, while …

java collections synchronization hashmap hashtable
How can I update a value in a mutable HashMap?

Here is what I am trying to do: use std::collections::HashMap; fn main() { let mut my_map = HashMap::new(); …

hashmap rust
What is the optimal capacity and load factor for a fixed-size HashMap?

I'm trying to figure out the optimal capacity and load factor for a specific case. I think I got the …

java hashmap
When should I use a Hashtable versus a HashMap

This is not a question about the differences between Hashtable and HashMap. I understand that a Hashtable object cannot accept …

java collections hashmap hashtable
How do I create a HashMap literal?

How I can create a HashMap literal in Rust? In Python I can do it so: hashmap = { 'element0': { 'name': …

hashmap rust
Java Map sort by value

I was looking for ways of sorting Map<String, Integer> by values. I found this post, which solved …

java sorting hashmap comparator treemap
Why is HashMap faster than HashSet?

I have been reading/researching the reason why HashMapis faster than HashSet. I am not quite understanding the following statements: …

java performance hashmap hashset
EnumMap or HashMap if lookup key is a String

I'm trying to weigh the pros and cons of using an EnumMap over a HashMap. Since, I will always be …

java collections hashmap enum-map