initial version of hashmap works
This commit is contained in:
@@ -17,3 +17,5 @@ $$ hash(\text{key}) = \text{key} \mod \text{table\_dim} $$
|
||||
|
||||
- String keys:
|
||||
$$ hash(key) = \sum_{i=0}^{len(key) - 1} ascii\_value(key[i]) * prime\_number$$
|
||||
|
||||
**TODO**
|
||||
Reference in New Issue
Block a user