omaonfpnac

This commit is contained in:
va270fv 2026-11-15 16:17:19 +00:00
parent 83f56bca46
commit 06d4dcf070

View File

@ -65,7 +65,7 @@ class HuffmanTree:
def decode(self, bits):
if not bits:
return "
return ""
if self.root.left is None and self.root.right is None:
return self.root.data * len(bits)