Skip to content

Hw8#9

Open
poluninatm wants to merge 7 commits into
masterfrom
hw8
Open

Hw8#9
poluninatm wants to merge 7 commits into
masterfrom
hw8

Conversation

@poluninatm
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

@Dzhoker1 Dzhoker1 left a comment

Choose a reason for hiding this comment

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

Оставил комментарии по коду

Comment thread task_1.py
self.left = left
self.right = right

if type(self.left) is HaffNode:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Для проверки соответствия типов рекомендуется использовать встроенную функцию:
if isinstance(self.left, HaffNode):

Comment thread task_1.py
return (arch, code_dict)


def dehaffman(string, code_dict):
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Даже декодирование. Класс!

Comment thread task_1.py
return dearch


check_string = 'Проверка алгоритма Хаффмана'
Copy link
Copy Markdown

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