mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
fix error in preshow
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user