Skip to content

Conversation

@DoctorChe
Copy link
Owner

Lesson 8 is done

@pep8speaks
Copy link

Hello @DoctorChe! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 33:80: E501 line too long (86 > 79 characters)

s = "ваша опухоль доброкачественная"
haffman_code(haffman_tree(s))
for i in s:
print(code_table[i], end=' ')

Choose a reason for hiding this comment

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

код отрабатывает верно. разобрались с тонкостями алгоритма?
+, что применили объекты модуля collections


r = set()
N = len(s)
print(f"Количество различных подстрок в строке '{s}' равно {len(cacl_hash(s, r, N))}")

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.

4 participants