A good start to writing the class is to initialize it with just the bare minimums. We need a storage array, so let's start there:
1class Hashmap:
2 def __init__(self):
3 self.storage = [None for _ in range(16)]
4 self.size = 0
A good start to writing the class is to initialize it with just the bare minimums. We need a storage array, so let's start there:
1class Hashmap:
2 def __init__(self):
3 self.storage = [None for _ in range(16)]
4 self.size = 0