-
Notifications
You must be signed in to change notification settings - Fork 269
added Hash Table #160
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
added Hash Table #160
Conversation
In remove
method instead of creating whole new linked list, manipulating the existing one will be a better approach i think because old linked list will remain in memory. @ashokdey
In
remove
method instead of creating whole new linked list, manipulating the existing one will be a better approach i think because old linked list will remain in memory. @ashokdey
I've updated it but would like to see your approach as well 👍
@ashokdey get
function returns an array. I'm not able to understand why? It should return the value
@ashokdey
get
function returns an array. I'm not able to understand why? It should return thevalue
Because I am not able to finalize either to override a value when the same key is used more than once. For example:
ht.set('hello', 'Hello Hash Table'); ht.set('hello', 'Hello World');
I am willing to go with override
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
Uh oh!
There was an error while loading. Please reload this page.
🌮 What's Inside?
Added the most extensively used Data Structure - Hash Tables (aka Hash Map)
API Details:
Note: Passing the same key with different value, overrides the previous value
🏖