Skip to content

Commit 779240a

Browse files
Update
1 parent 7e7b697 commit 779240a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Chapter06/binary_search_tree.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,10 @@ def search(self, data):
112112
current = self.root_node
113113
while True:
114114
if current is None:
115+
print("Item not found")
115116
return None
116117
elif current.data is data:
118+
print("Item found", data)
117119
return data
118120
elif current.data > data:
119121
current = current.left_child

0 commit comments

Comments
 (0)