mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-18 16:27:02 +00:00
fix error in preshow
This commit is contained in:
parent
f65fe8c858
commit
d8a0afc550
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue
Block a user