Skip to content

Commit 526a0be

Browse files
Update binary-search-tree.py
1 parent 81b2f3f commit 526a0be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

trees/binary-search-tree.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _get(self, root: TreeNode, key) -> TreeNode:
107107

108108
def contains(self, key) -> bool:
109109
if self.is_empty():
110-
return None
110+
return False
111111
found: bool = False
112112
node: TreeNode = self.root
113113
while node is not None and not found:

0 commit comments

Comments
 (0)