solved Task 4

This commit is contained in:
schrom01 2022-10-25 15:48:59 +02:00
parent a63689aeb0
commit 87da5e2551
1 changed files with 2 additions and 1 deletions

View File

@ -12,8 +12,9 @@ public class AVLSearchTree<T extends Comparable<T>> extends SortedBinaryTree<T>
|| (node.right != null && !balanced(node.right))
|| (node.left != null && !balanced(node.left))){
return false;
} else {
return true;
}
return true;
}
public boolean balanced() {