Skip to content
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

Duplicate keys - It should overwrite #4

Open
alok87 opened this issue Jan 14, 2020 · 0 comments
Open

Duplicate keys - It should overwrite #4

alok87 opened this issue Jan 14, 2020 · 0 comments

Comments

@alok87
Copy link

alok87 commented Jan 14, 2020

The hash can contain duplicate key value pairs in the bucket chain as it always prepend to the chain.

self.buckets[bucketIdx] = &Bucket{hashKey, key, value, head}

https://github.com/suncat2000/hashmap/blob/master/hashmap.go#L99

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant