|
|
|
|
|
by jvanderbot
1321 days ago
|
|
No, technically he's right. On paper, a hash map creates an index in an array-like structure from the key, but does not necessarily store the key in a retrievable way. The "Hash" in hashmap comes from the fact that the key is somehow hashed (an often irreversible procedure) to determine the memory location to store the value. 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! |
|