-
Notifications
You must be signed in to change notification settings - Fork 0
Lesson6 #6
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: lesson5
Are you sure you want to change the base?
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.
Оставил комментарии по коду
| print(mod_size(maxpos)) | ||
| print(mod_size(array)) | ||
| print(mod_size(countarray)) | ||
| print(f'Summary: {mod_size(maxpos) + mod_size(array) + mod_size(countarray)}') |
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.
Константы решили не добавлять? )))
| #14 | ||
| #Summary: 183858 | ||
|
|
||
| # Вывод - функция 1 - жертвуем памятью ради быстродействия, функция 2 - жертвуем быстродействием - экономим память |
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.
Отлично
| for i in a: | ||
| if a[i] != 0: | ||
| b.append(a[i]) | ||
| #del 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.
Хорошо, что закомментировали. Даже успел подумать об ошибке при замерах удалённой переменной
| #findsimple(100) | ||
| #Summary: 1868 | ||
|
|
||
| # В данном случае можем сделать точно такой же вывод как и в первом случае - алгоритм, экономнее расходующий память |
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.