Merge pull request #688 from LeonardoGalves/master

Correction of a RuntimeException Uncompilable source code
This commit is contained in:
Libin Yang
2019-01-18 10:17:55 +08:00
committed by GitHub

View File

@ -176,9 +176,10 @@ public class AVLTree {
}
private void setBalance(Node... nodes) {
for (Node n : nodes)
for (Node n : nodes) {
reheight(n);
n.balance = height(n.right) - height(n.left);
}
}
public void printBalance() {