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

fix the logic of _balanceNode method in AvlTree #59

Merged

Conversation

Kawai-So
Copy link
Contributor

@Kawai-So Kawai-So commented Jan 5, 2024

the original method can't maintain the balance of AvlTree.

Should add a unit test which will verify all the node's balance ( neither > 1 nor < -1)

@eyas-ranjous eyas-ranjous self-requested a review January 7, 2024 05:53
@eyas-ranjous eyas-ranjous merged commit 0455a62 into datastructures-js:master Jan 8, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants