-
Notifications
You must be signed in to change notification settings - Fork 0
Hw7 #8
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
base: master
Are you sure you want to change the base?
Hw7 #8
Conversation
Dzhoker1
left a comment
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.
Оставил комментарии по коду
|
|
||
| def sort_bubble(array): | ||
| for ii in range(0, len(array) - 1): | ||
| for i in range(0, len(array) - ii - 1): |
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.
Отлично. На уроке дополним код, чтобы алгоритм стал умнее
| return rand | ||
|
|
||
|
|
||
| def sort_merge(array): |
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.
Отличная реализация
| return | ||
|
|
||
| middle = len(array) // 2 | ||
| array_1 = array[0:middle] |
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.
Ноль можно не писать )))
| RIGHT_EDGE = 200 | ||
|
|
||
|
|
||
| def get_median(array): |
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.