From 9c395c4a905ed6d31b571574ff2fd78a7bc1ec3b Mon Sep 17 00:00:00 2001 From: Oleksandr Mateshchuk Date: Tue, 10 Nov 2026 13:10:47 +0000 Subject: [PATCH] Aktualizovat u9/huffman_tree.py --- u9/huffman_tree.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/u9/huffman_tree.py b/u9/huffman_tree.py index 184de7a..338bc49 100644 --- a/u9/huffman_tree.py +++ b/u9/huffman_tree.py @@ -22,10 +22,11 @@ class HuffmanTree: def tree(self): - pass + return self.root def codes(self): - pass + return self._codes.copy() + def encode(self, text): pass