Skip to content

lesson7 - #7

Open
b0rsh3c wants to merge 1 commit into
masterfrom
lesson7
Open

lesson7#7
b0rsh3c wants to merge 1 commit into
masterfrom
lesson7

Conversation

@b0rsh3c

@b0rsh3c b0rsh3c commented Jan 29, 2020

Copy link
Copy Markdown
Owner

непонятен момент с "По возможности доработайте алгоритм (сделайте его умнее)"

непонятен момент с "По возможности доработайте алгоритм (сделайте его умнее)"
Comment thread Lesson_7/1.py
break
return array

print(bubble_sort(r)) No newline at end of file

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 Lesson_7/2.py


print('Исходный массив:', numbers)
print('Отсортированный массив:', merge_sort(numbers[:]))

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 Lesson_7/3.py


print('Исходный массив:', numbers)
print('Медиана:', median(numbers[:])) No newline at end of file

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