So recently I took upon myself a technical coding challenge of making a hashtable from scratch in C. It was a difficult project, one that I could not have done without help. ( https://github.com/jamesroutley/write-a-hash-table#contents).
Key Learnings:-
The most crude hashtable works with a key attached to a chain of values. The key is a hashed string, made from the key provided to the hashmap. The size of the chain depends on the number of values with the same key.
In Hindsight:-
After completing the tutorial I should have tried to recreate the hashtable from scratch. It would have helped improve my understanding and I could have tried to add new features to it like dynamic resizing.
Top comments (0)