You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'Carlos' and 'Carla' don't get hashed to 3. 'Carlos' gets hashed to 9 and 'Carla' gets hashed to 12 when the results of the hash function(64878633 & 2011238172) modulo 16.
Thank you for making this issue @Punith1117 You're absolutely correct about this. I think you can fix it by finding two strings that do yield the same index under the given hashing algorithm.
Since you indicated you'd like to work on this issue, I'll assign you. This same issue exists in the Ruby version of this lesson. It'd be great if you could make the same changes there. Don't worry, you shouldn't have to know any Ruby to be able to do this. Let me know if you have any questions!
Checks
Describe your suggestion
'Carlos' and 'Carla' don't get hashed to 3. 'Carlos' gets hashed to 9 and 'Carla' gets hashed to 12 when the results of the hash function(64878633 & 2011238172) modulo 16.
Path
Node / JS
Lesson Url
https://www.theodinproject.com/lessons/javascript-hashmap
(Optional) Discord Name
No response
(Optional) Additional Comments
No response
The text was updated successfully, but these errors were encountered: