u7Fix1
This commit is contained in:
parent
f208885163
commit
a02170bbd1
@ -7,12 +7,11 @@ class HashTable:
|
||||
"""Vytvor prázdnu tabuľku s kladnou celočíselnou kapacitou."""
|
||||
self.empty = object()
|
||||
self.deleted = object()
|
||||
self.slots = [self.empty] * capacity
|
||||
self._capacity = capacity
|
||||
self.size = 0
|
||||
self.table = []
|
||||
for i in range(capacity):
|
||||
self.table.append([])
|
||||
self.table.append(self.empty)
|
||||
|
||||
@property
|
||||
def capacity(self):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user