From d8a0afc55065467bc642fca181c6560565cb0247 Mon Sep 17 00:00:00 2001 From: Rafael Date: Fri, 7 Jul 2017 19:08:04 +0200 Subject: [PATCH] fix error in preshow --- data_structures/Binary Tree/binary_seach_tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data_structures/Binary Tree/binary_seach_tree.py b/data_structures/Binary Tree/binary_seach_tree.py index 1dac948ae..7840b2a32 100644 --- a/data_structures/Binary Tree/binary_seach_tree.py +++ b/data_structures/Binary Tree/binary_seach_tree.py @@ -68,7 +68,7 @@ class BinarySearchTree: return False def preShow(self, curr_node): - if curr_node is None: + if curr_node is not None: print(curr_node.getLabel(), end=" ") self.preShow(curr_node.getLeft())