u7Fix7
This commit is contained in:
parent
59d7baf2df
commit
442def2cad
@ -50,7 +50,11 @@ class HashTable:
|
|||||||
elif self.table[index][0] == key:
|
elif self.table[index][0] == key:
|
||||||
return index
|
return index
|
||||||
i += 1
|
i += 1
|
||||||
raise KeyError(key)
|
if del_slot is not None:
|
||||||
|
return del_slot
|
||||||
|
else:
|
||||||
|
raise RuntimeError("tabula je povna")
|
||||||
|
#raise KeyError(key)
|
||||||
|
|
||||||
def load_factor(self):
|
def load_factor(self):
|
||||||
"""Vráť podiel počtu aktívnych položiek a kapacity."""
|
"""Vráť podiel počtu aktívnych položiek a kapacity."""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user