Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ remove
Method
remove
python/0706-design-hashmap.py:31–36 ·
view source on GitHub ↗
(self, key: int)
Source
from the content-addressed store, hash-verified
29
return
-1
30
31
def
remove(self, key: int) -> None:
32
cur = self.map[self.hashcode(key)]
33
while
cur.next and cur.next.key != key:
34
cur = cur.next
35
if
cur and cur.next:
36
cur.next = cur.next.next
Callers
nothing calls this directly
Calls
1
hashcode
Method · 0.95
Tested by
no test coverage detected