diff --git a/src/ch/zhaw/ads/AVLSearchTree.java b/src/ch/zhaw/ads/AVLSearchTree.java index ad649f2..c25511c 100644 --- a/src/ch/zhaw/ads/AVLSearchTree.java +++ b/src/ch/zhaw/ads/AVLSearchTree.java @@ -12,8 +12,9 @@ public class AVLSearchTree> extends SortedBinaryTree || (node.right != null && !balanced(node.right)) || (node.left != null && !balanced(node.left))){ return false; + } else { + return true; } - return true; } public boolean balanced() {