From 8c9d9498b5beeb12f6c68f0eae4b8f8cc5889f67 Mon Sep 17 00:00:00 2001 From: Francisco Matias Date: Tue, 20 Jun 2017 04:17:20 -0300 Subject: [PATCH] print --- data_structures/Binary Tree/binary_seach_tree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data_structures/Binary Tree/binary_seach_tree.py b/data_structures/Binary Tree/binary_seach_tree.py index 4ebb4466f..8e708e660 100644 --- a/data_structures/Binary Tree/binary_seach_tree.py +++ b/data_structures/Binary Tree/binary_seach_tree.py @@ -67,8 +67,8 @@ class BinarySearchTree: def preShow(self, curr_node): if curr_node != None: - print(curr_node.getLabel()) - print ('\n') + print(curr_node.getLabel(), end=" ") + self.preShow(curr_node.getLeft()) self.preShow(curr_node.getRight())