https://github.com/PacktPublishing/Learning-JavaScript-Data-Structures-and-Algorithms-Third-Edition/blob/520e02f041966400fa957bc1a3317b2dc9db4a96/LearningJavaScriptDataStructuresandAlgorithmsThirdEdition_Code/src/js/data-structures/avl-tree.js#L135 Dear loiane. I think this line is unnecessary, when the node is balanced, it not need to be rotate. it will be cause error if rotate bananced node
Learning-JavaScript-Data-Structures-and-Algorithms-Third-Edition/LearningJavaScriptDataStructuresandAlgorithmsThirdEdition_Code/src/js/data-structures/avl-tree.js
Line 135 in 520e02f
Dear loiane.
I think this line is unnecessary, when the node is balanced, it not need to be rotate. it will be cause error if rotate bananced node