From 24b2ea6365fa1229f80c7e3de875f47c71338994 Mon Sep 17 00:00:00 2001 From: Oleksandr Mateshchuk Date: Tue, 10 Nov 2026 12:56:08 +0000 Subject: [PATCH] Aktualizovat u9/huffman_tree.py --- u9/huffman_tree.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/u9/huffman_tree.py b/u9/huffman_tree.py index e69de29..e0883b3 100644 --- a/u9/huffman_tree.py +++ b/u9/huffman_tree.py @@ -0,0 +1,23 @@ +class HuffmanNode: + def __init__(self, data=None, frequency=0, left=None, right=None): + pass + + def __str__(self): + pass + + +class HuffmanTree: + def __init__(self, data): + pass + + def tree(self): + pass + + def codes(self): + pass + + def encode(self, text): + pass + + def decode(self, bits): + pass