Closed alghe-global closed 11 months ago
N.B. probably article https://www.baeldung.com/java-avl-trees#insert-node-avl should be updated as well to reflect this change.
Hey, @alghe-global.
Thanks for the feedback. We'll look into this and update the article if necessary.
This issue will remain open until then.
Hi @alghe-global - we renamed the variable for clarity sake and updated the article.
From:
To:
This will make it clear that rebalancing has to happen at the root in order to maintain AVL property (all nodes should not differ by at most 1 [1, 0, -1]).