u9
This commit is contained in:
parent
5f0c63d05f
commit
72e83070e0
10
huffman_tree.py
Normal file
10
huffman_tree.py
Normal 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})"
|
||||||
|
|
||||||
BIN
u2/__pycache__/list_ops_test.cpython-310.pyc
Normal file
BIN
u2/__pycache__/list_ops_test.cpython-310.pyc
Normal file
Binary file not shown.
0
u6/kindergarten_garden.py
Normal file
0
u6/kindergarten_garden.py
Normal file
Loading…
Reference in New Issue
Block a user