We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a9405e commit 8c9d949Copy full SHA for 8c9d949
data_structures/Binary Tree/binary_seach_tree.py
@@ -67,8 +67,8 @@ def empty(self):
67
68
def preShow(self, curr_node):
69
if curr_node != None:
70
- print(curr_node.getLabel())
71
- print ('\n')
+ print(curr_node.getLabel(), end=" ")
+
72
self.preShow(curr_node.getLeft())
73
self.preShow(curr_node.getRight())
74
0 commit comments