mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-19 00:37:02 +00:00
fix error in preshow
This commit is contained in:
parent
f65fe8c858
commit
d8a0afc550
|
@ -68,7 +68,7 @@ class BinarySearchTree:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def preShow(self, curr_node):
|
def preShow(self, curr_node):
|
||||||
if curr_node is None:
|
if curr_node is not None:
|
||||||
print(curr_node.getLabel(), end=" ")
|
print(curr_node.getLabel(), end=" ")
|
||||||
|
|
||||||
self.preShow(curr_node.getLeft())
|
self.preShow(curr_node.getLeft())
|
||||||
|
|
Loading…
Reference in New Issue
Block a user