HashMap Data Structure: more clarity over need to rehash existing keys when growing a hash map #27682
Open
2 of 3 tasks
Labels
Status: Stale
This issue/PR has been inactive for over 30 days and will be closed if inactivity continues
Checks
Describe your suggestion
As I understand it, when growing a hash map, it is necessary to rehash all existing keys. The course currently says "To grow our buckets, we create a new buckets list that is double the size of the old buckets list, then we copy all nodes over to the new buckets." That wasn't very clear to me, and skimming solutions from students on the hashmap project, 2 out of 3 just mapped the existing keys directly to the larger hash map without rehashing them. It would certainly benefit from more explanation.
Path
Node / JS
Lesson Url
https://www.theodinproject.com/lessons/javascript-hashmap-data-structure
(Optional) Discord Name
glenoftzintel
(Optional) Additional Comments
Enjoying the course, intending to start to provide a bit more feedback going forward!
The text was updated successfully, but these errors were encountered: