From 711c30322221b761ded0c51f32f0f61c77ab0638 Mon Sep 17 00:00:00 2001 From: Gary Krige Date: Fri, 21 Apr 2017 13:20:22 +0200 Subject: [PATCH] Update min_height.py --- tree/min_height.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tree/min_height.py b/tree/min_height.py index 9254c59be..ebb8f75be 100644 --- a/tree/min_height.py +++ b/tree/min_height.py @@ -51,6 +51,6 @@ def print_tree(root): tree.left.right = Node(30) tree.right.left = Node(36) -height = max_height(tree) +height = min_height(tree) print_tree(tree) print("height:", height)