Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HW 7 Verkh #586

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

HW 7 Verkh #586

wants to merge 1 commit into from

Conversation

VerkhVektor
Copy link

No description provided.

Даёт незначительный прирост по времени (и то не всегда), доработка не обязательна.
"""


Copy link
Owner

Choose a reason for hiding this comment

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

все верно

a = [random()*50 for el in range(int(input("Введите число элементов: ")))]
print(f'Исходный список - {a}')
# print(merge_sort([9, 6, 41, 29, 40])) на этом примере разбирался
print(f'Отсортированный список - {merge_sort(a)}')
Copy link
Owner

Choose a reason for hiding this comment

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

слияние реализовано

print('Медиана по словарю', (dif[min(dif)]))
print(statistics.median(a))


Copy link
Owner

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