Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HuberTRoy/leetCode
/ search
Method
search
Tree/BinarySearchTree.py:63–65 ·
view source on GitHub ↗
(self, value)
Source
from the content-addressed store, hash-verified
61
break
62
63
def
search(self, value):
64
# 查找一个值是否存在于这颗树中。
65
return
self._search(self.root, value)
66
67
def
_search(self, root, value):
68
if
root.val == value:
Callers
1
add
Method · 0.95
Calls
1
_search
Method · 0.95
Tested by
no test coverage detected