Skip to content

Commit 8f2b3c0

Browse files
committed
Fix
1 parent 229500f commit 8f2b3c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compression/huffman.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def build_tree(letters: list[Letter]) -> Letter | TreeNode:
4040
Run through the list of Letters and build the min heap
4141
for the Huffman Tree.
4242
"""
43-
response: list[Letter | TreeNode] = letters.copy()
43+
response: list[Letter | TreeNode] = list(letters)
4444
while len(response) > 1:
4545
left = response.pop(0)
4646
right = response.pop(0)

0 commit comments

Comments
 (0)