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

Allow for duplicate nodes #1

Closed
w8r opened this issue Apr 17, 2017 · 3 comments
Closed

Allow for duplicate nodes #1

w8r opened this issue Apr 17, 2017 · 3 comments
Assignees

Comments

@w8r
Copy link
Owner

w8r commented Apr 17, 2017

This restriction should be lifted, it's not a queue

@w8r w8r self-assigned this Apr 17, 2017
@w8r
Copy link
Owner Author

w8r commented Aug 7, 2017

If I just remove it from the code, balancing step fails. I think the key is to find the parent node so that it wouldn't have the same key.

@w8r
Copy link
Owner Author

w8r commented Aug 8, 2017

http://www.geeksforgeeks.org/avl-with-duplicate-keys/
not cool, O(n) added space and not so easy traversals, if someone wants to traverse the tree himself

@w8r
Copy link
Owner Author

w8r commented Aug 8, 2017

w8r added a commit that referenced this issue Aug 19, 2017
@w8r w8r mentioned this issue Aug 19, 2017
w8r added a commit that referenced this issue Aug 19, 2017
* implements duplicate keys support #1
* renamed circle config
* added bulk-insert method
* added typescript definition file check
@w8r w8r closed this as completed Aug 20, 2017
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