MCPcopy Create free account
hub / github.com/Jack-Lee-Hiter/AlgorithmsByPython / __init__

Method __init__

Hash.py:27–30  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

25
26class HashTable:
27 def __init__(self):
28 self.size = 11
29 self.slots = [None] * self.size
30 self.data = [None] * self.size
31
32 def put(self, key, data):
33 hashvalue = self.hashfunction(key, self.size)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected