Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/neetcode-gh/leetcode
/ __init__
Method
__init__
python/0706-design-hashmap.py:8–9 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
6
7
class
MyHashMap:
8
def
__init__(self):
9
self.map = [ListNode()
for
i in range(1000)]
10
11
def
hashcode(self, key):
12
return
key % len(self.map)
Callers
nothing calls this directly
Calls
1
ListNode
Class · 0.70
Tested by
no test coverage detected