-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Javascript: Project HashMap - wrong examples #29210
Comments
@JoshDevHub Would you mind taking a look at this please? |
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! |
@JoshDevHub Thank you for assigning me this issue. Will work on it and create a PR soon. |
@JoshDevHub Could you please review the PR? |
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: