-
Notifications
You must be signed in to change notification settings - Fork 78
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
base: master
Are you sure you want to change the base?
HW 7 Verkh #586
Conversation
Даёт незначительный прирост по времени (и то не всегда), доработка не обязательна. | ||
""" | ||
|
||
|
There was a problem hiding this comment.
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)}') |
There was a problem hiding this comment.
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)) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
добавьте описание, какой подход применен
No description provided.