From 442def2cad16396d58abf8b85850d98e3d2c0062 Mon Sep 17 00:00:00 2001 From: Marege Date: Thu, 29 Oct 2026 22:04:56 +0100 Subject: [PATCH] u7Fix7 --- u7/hash_table.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/u7/hash_table.py b/u7/hash_table.py index fd53964..cd10e66 100644 --- a/u7/hash_table.py +++ b/u7/hash_table.py @@ -50,7 +50,11 @@ class HashTable: elif self.table[index][0] == key: return index 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): """Vráť podiel počtu aktívnych položiek a kapacity."""