initial version of hashmap works

This commit is contained in:
2024-11-09 20:43:12 +01:00
parent 51a309e55f
commit 5e5d25cd75
9 changed files with 51 additions and 28 deletions

View File

@@ -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**