Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/doocs/leetcode
/ contains
Method
contains
solution/0700-0799/0705.Design HashSet/Solution.py:11–12 ·
view source on GitHub ↗
(self, key: int)
Source
from the content-addressed store, hash-verified
9
self.data[key] = False
10
11
def
contains(self, key: int) -> bool:
12
return
self.data[key]
13
14
15
# Your MyHashSet object will be instantiated and called as such:
Callers
15
minMutation
Method · 0.45
dfs
Method · 0.45
getNextLevel
Method · 0.45
isIPv6
Method · 0.45
repeatedSubstringPattern
Method · 0.45
pacificAtlantic
Method · 0.45
bfs
Method · 0.45
find_products
Function · 0.45
minimumMoves
Method · 0.45
f
Method · 0.45
f
Method · 0.45
findMaximumElegance
Method · 0.45
Calls
no outgoing calls
Tested by
5
f
Method · 0.36
f
Method · 0.36
shortestSubstrings
Method · 0.36
shortestSuperstring
Method · 0.36
greatestLetter
Method · 0.36