Skip to content

Lesson_7#603

Open
kalenikai wants to merge 1 commit intoDmitryChitalov:masterfrom
kalenikai:Lesson_7
Open

Lesson_7#603
kalenikai wants to merge 1 commit intoDmitryChitalov:masterfrom
kalenikai:Lesson_7

Conversation

@kalenikai
Copy link
Copy Markdown

Lesson_7

Comment thread task_1.py
"""
Без оптимизации 0.0019780999999999965
С оптимизацией 0.00015790000000000248
""" No newline at end of file
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

неправильно сделанные замеры
то, о чем мы говорили на уроке....

Comment thread task_2.py
# замеры
print(timeit.timeit("merge_sort(orig_list)", \
setup="from __main__ import merge_sort, orig_list", number=1))

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

слияние реализовано, как в примере

Comment thread task_3.py
Fastest way using "median" from "statistics" 0.0006178999999999768
Litlle bit worse using "sorted" 0.0006308000000000147
My realization is nightmare :) 0.058788599999999996
"""
Copy link
Copy Markdown
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