add docs and some hashmap code

This commit is contained in:
2024-11-10 17:06:52 +01:00
parent 5e5d25cd75
commit f1612dad0f
7 changed files with 114 additions and 10 deletions

View File

@@ -17,5 +17,3 @@ $$ 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**