fave77 / Mathball

A JavaScript library for Competitive Programming
https://fave77.github.io/Mathball-Docs/
MIT License
99 stars 49 forks source link

Implement AVL trees using Binary Tree. #164

Open Shubhayu-Das opened 5 years ago

Shubhayu-Das commented 5 years ago

Do the checklist before filing the issue:

NOTE: Provide a clear and concise description of the feature that needs to be added! Or if its a bug, then provide the necessary steps to reproduce it along with screenshots.

A Binary Tree by itself can end up being skew, hence degrading it's efficiency. By balancing the Binary Tree using rotations we can ensure the height of the tree to be O(log n). AVL Tree is one way height-balance a Binary Tree.

For reference: https://www.geeksforgeeks.org/avl-tree-set-1-insertion/

Shubhayu-Das commented 5 years ago

I would like to work on this.

Shubhayu-Das commented 5 years ago

Can I take another day for this one? I couldn't work on it in the morning and hardly have any time now. I can finish it by 7pm tomorrow evening though. Is that fine?

fave77 commented 5 years ago

Sure @sateslayer

fave77 commented 5 years ago

@sateslayer your time's up

devRD commented 5 years ago

can I work on this? Can you provide more details on how to implement this with an example?

fave77 commented 5 years ago

@devRD you're assigned and check the issue #158 for more details. Include all the public methods mentioned there.

devRD commented 5 years ago

@pbiswas101 Can you please assign this task to someone else? I had some emergency and was unable to work on it.

gourabk121 commented 5 years ago

I would like to do that. gssoc19

fave77 commented 5 years ago

@gourabk121 are you a gssoc19 participant?