Skip to content

Conversation

@aparibocci
Copy link
Contributor

@aparibocci aparibocci commented Feb 17, 2023

As per title, this MR aims to add a Ruby implementation of an AVL tree with distinct key nodes.
This is a special case of a binary search tree where self-balancing is implemented upon insertion and deletion, allowing to keep the tree balanced.

Due to self-balancing upon key insertion and deletion, the main operations of this data structure (insertion, deletion, membership) run - in worst case - in O(log(n)), where n is the number of nodes in the tree.

Traversal methods (pre-order, in-order, post-order) with custom consumer as argument are also exposed.

Copy link
Contributor

@domix80 domix80 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Loos good,
thanks

@aparibocci
Copy link
Contributor Author

Hello @StepfenShawn, could I ask you to have a look at this PR, whenever you have a few minutes?
Thank you!

@StepfenShawn StepfenShawn requested review from jsca-kwok and vbrazo April 5, 2023 00:56
@StepfenShawn
Copy link
Member

I'm drowning in a computer competition in this week. So I'll review and debug your code in next week.

@aparibocci
Copy link
Contributor Author

I'm drowning in a computer competition in this week. So I'll review and debug your code in next week.

Amazing! Thank you and best of luck!

StepfenShawn

This comment was marked as duplicate.

Copy link
Member

@StepfenShawn StepfenShawn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@StepfenShawn StepfenShawn merged commit a2730e2 into TheAlgorithms:master Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants