Skip to content

Commit d8a0afc

Browse files
committed
fix error in preshow
1 parent f65fe8c commit d8a0afc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_structures/Binary Tree/binary_seach_tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def empty(self):
6868
return False
6969

7070
def preShow(self, curr_node):
71-
if curr_node is None:
71+
if curr_node is not None:
7272
print(curr_node.getLabel(), end=" ")
7373

7474
self.preShow(curr_node.getLeft())

0 commit comments

Comments
 (0)