From 259dc9c0bfc52609c6419676701acd645f87cb28 Mon Sep 17 00:00:00 2001 From: Marege Date: Tue, 10 Nov 2026 18:54:00 +0100 Subject: [PATCH] U9fix11 --- u9/huffman_tree.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/u9/huffman_tree.py b/u9/huffman_tree.py index 0e420ab..bf24a47 100644 --- a/u9/huffman_tree.py +++ b/u9/huffman_tree.py @@ -65,6 +65,11 @@ class HuffmanTree: def encode(self, text): if self.root is None: return "" + kodiki = self.codes() + allkodiki = "" + for i in text: + allkodiki += kodiki[i] + return allkodiki def decode(self, bits): if self.root is None: