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

homework_07 #1273

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

homework_07 #1273

wants to merge 1 commit into from

Conversation

erinar
Copy link

@erinar erinar commented Apr 11, 2021

No description provided.

# без оптимизации 6.436502464930527
# ---
# Как и ожидалось, получаем небольшой проигрыш
# из-за дополнительной проверки
Copy link
Owner

Choose a reason for hiding this comment

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

ваш массив будет отсортирован уже ко второму шагу

мы об этом говорили на уроке!!!
обязательно посещайте вебинары

# память выделяется здесь
a = r[beg:mid]
b = r[mid:end]
lena = len(a)
Copy link
Owner

Choose a reason for hiding this comment

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

b - вот такие переменные это шифрокод
когда мы ленимся придумывать качественные имена

# ---

# Результат улучшился примерно вдвое, и стал медленнее
# встроенной функции всего в 1.6 раз
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