Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jack-Lee-Hiter/AlgorithmsByPython
/ __getitem__
Method
__getitem__
BinarySearchTree.py:100–101 ·
view source on GitHub ↗
(self, key)
Source
from the content-addressed store, hash-verified
98
return
self._get(key, currentNode.rightChild)
99
100
def
__getitem__(self, key):
101
return
self.get(key)
102
103
def
__contains__(self, key):
104
if
self._get(key, self.root):
Callers
nothing calls this directly
Calls
1
get
Method · 0.95
Tested by
no test coverage detected