Skip to content

Huffman#6

Open
stuffacc wants to merge 2 commits intomainfrom
huffman
Open

Huffman#6
stuffacc wants to merge 2 commits intomainfrom
huffman

Conversation

@stuffacc
Copy link
Owner

No description provided.

@stuffacc stuffacc requested a review from chernishev November 16, 2025 19:37
self.right = right

def __lt__(self, other):
return other.weight > self.weight

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Лучше писать через < , раз ты реализуешь операцию <

table[key] = value[0:len(value) - 1]
content = f_read.read()
decoded_str = decode(content, table)
with open("decoded.txt", "w") as f:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

выходной файл нужно запрашивать у пользователя.

with open(filepath, "r") as f_read:
content = f_read.read()
encoded_str, table = encode(content)
with open("encoded.huff", "w") as f_write:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

выходной файл нужно запрашивать у пользователя.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants