fix error in preshow

This commit is contained in:
Rafael 2017-07-07 19:08:04 +02:00
parent f65fe8c858
commit d8a0afc550

View File

@ -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())