|
|
|
|
|
by q-big
1327 days ago
|
|
> someone who had done pretty well in our DS > Him: “I can’t. I need to be able to get both the key and the value and hash tables don’t store the key” How could he do well in the data structures class? This is the definition of a hash map or hashed dictionary, so this is basic knowledge of data structures that is taught in this class and central to know to even have a chance of passing the exam. |
|
In practice it's not the case, but very technically from a purely theoretical standpoint, I think he's right.
EDIT: untrue on any finite sized array, due to collisions. See below, and sorry for the brain fart!