MCPcopy 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

minMutationMethod · 0.45
dfsMethod · 0.45
getNextLevelMethod · 0.45
isIPv6Method · 0.45
pacificAtlanticMethod · 0.45
bfsMethod · 0.45
find_productsFunction · 0.45
minimumMovesMethod · 0.45
fMethod · 0.45
fMethod · 0.45
findMaximumEleganceMethod · 0.45

Calls

no outgoing calls

Tested by 5

fMethod · 0.36
fMethod · 0.36
shortestSubstringsMethod · 0.36
shortestSuperstringMethod · 0.36
greatestLetterMethod · 0.36