mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
This commit is contained in:
parent
4a9405e1b0
commit
8c9d9498b5
@ -67,8 +67,8 @@ class BinarySearchTree:
|
|||||||
|
|
||||||
def preShow(self, curr_node):
|
def preShow(self, curr_node):
|
||||||
if curr_node != None:
|
if curr_node != None:
|
||||||
print(curr_node.getLabel())
|
print(curr_node.getLabel(), end=" ")
|
||||||
print ('\n')
|
|
||||||
self.preShow(curr_node.getLeft())
|
self.preShow(curr_node.getLeft())
|
||||||
self.preShow(curr_node.getRight())
|
self.preShow(curr_node.getRight())
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user