This commit is contained in:
Marege 2026-10-29 20:45:07 +01:00
parent f208885163
commit a02170bbd1

View File

@ -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):