From 87da5e25510f3925267a0fc078c68492d95f1338 Mon Sep 17 00:00:00 2001 From: schrom01 Date: Tue, 25 Oct 2022 15:48:59 +0200 Subject: [PATCH] solved Task 4 --- src/ch/zhaw/ads/AVLSearchTree.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() {