MCPcopy Create free account
hub / github.com/Jack-Lee-Hiter/AlgorithmsByPython / __contains__

Method __contains__

BinarySearchTree.py:103–107  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

101 return self.get(key)
102
103 def __contains__(self, key):
104 if self._get(key, self.root):
105 return True
106 else:
107 return False
108
109 def delete(self, key):
110 if self.size > 1:

Callers

nothing calls this directly

Calls 1

_getMethod · 0.95

Tested by

no test coverage detected