Skip to content

Commit df9c8a8

Browse files
authored
Fix Python syntax error
1 parent 35a088a commit df9c8a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data_structures/bst/print_ancestor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def print_ancestor_recursive(root, key):
1111
return False
1212
if root.val == key:
1313
return True
14-
if print_ancestor_recursive(root.left, key) || print_ancestor_recursive(root.right, key):
14+
if print_ancestor_recursive(root.left, key) or print_ancestor_recursive(root.right, key):
1515
return root.data
1616
return False
1717

0 commit comments

Comments
 (0)