Correction of a RuntimeException Uncompilable source code

This commit is contained in:
Leonardo Galves
2019-01-17 13:43:12 -02:00
parent 571315df24
commit 55b6ff5c18

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() {