From b04536d028701599af6f50f70b480bfd8f4f71b4 Mon Sep 17 00:00:00 2001 From: Arina Dohadailo Date: Thu, 12 Nov 2026 22:55:34 +0000 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20u9/huffman=5Ftree.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- u9/huffman_tree.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/u9/huffman_tree.py b/u9/huffman_tree.py index 0c0df43..c48bd03 100644 --- a/u9/huffman_tree.py +++ b/u9/huffman_tree.py @@ -58,8 +58,8 @@ class HuffmanTree: result ={} if self.root == None: return result - def find(code, node): - if node.left is None and node.right in None: + def find(node, code): + if node.left is None and node.right is None: if code == "": code = "0" result[node.data] = code