[Cs3] Question Regarding Lab 7

Mikhail Nesterenko mikhail at cs.kent.edu
Thu Oct 5 21:59:35 EDT 2023


> A quick question for the Lab 7 for implementing hashmap. Unless I am
> missing something, am I supposed to assume that the buckets only store 1
> element and inserting into an existing bucket does not overwrite the data?
> 

The container is a vector of buckets where each bucket is a list of
key,value pairs. This is how it is show in the code:

// hash contents: vector of buckets
// each bucket is a list containing key->value pairs
// vector<list<Element>> elems_;

Thanks,
-- 
Mikhail


More information about the cs3 mailing list