This commit is contained in:
Your Name 2026-11-16 11:38:19 +01:00
parent 5f0c63d05f
commit 72e83070e0
3 changed files with 10 additions and 0 deletions

10
huffman_tree.py Normal file
View File

@ -0,0 +1,10 @@
class HuffmanNode:
def __init__(self, data=None, frequency=0, left=None, right=None):
self.data = data
self.frequency = frequency
self.left = left
self.right = right
def __str__(self):
return f"HuffmanNode(data={self.data!r}, frequency={self.frequency})"

Binary file not shown.

View File