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