Closed hefeng6500 closed 2 years ago
Hey @loiane , think this issue is fixed by this PR https://github.com/loiane/javascript-datastructures-algorithms/pull/193. And also @hefeng6500, your issue description is not related with the PR that you mentioned in the description? In a word this issue can be safely closed
@Jeffzholy thanks!
Hi loiane
I am the Chinese reader of your book "Learning javascript data structure and algorithm". I am studying the AVL tree and found a line of code in the method of removeNode that is unnecessary,
link this
this.getBalanceFactor(node.left) === BalanceFactor.BALANCED
Because I think if the tree is balanced, there is no need to move
additionally,I submitted a request in the project , do you have permission to merge the code for me?
PR: https://github.com/PacktPublishing/Learning-JavaScript-Data-Structures-and-Algorithms-Third-Edition/pull/12
Looking forward to your response!