-
Notifications
You must be signed in to change notification settings - Fork 180
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
1-2 #1269
base: master
Are you sure you want to change the base?
The head ref may contain hidden characters: "\u043F\u0435\u0440\u0432\u044B\u0435_\u0434\u0432\u0430_\u043D\u043E\u043C\u0435\u0440\u0430"
1-2 #1269
Conversation
@@ -28,7 +28,7 @@ def check_1(lst_obj): | |||
|
|||
Сложность: !!!. |
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.
не оценена итоговая сложность
@@ -28,7 +28,7 @@ def check_1(lst_obj): | |||
|
|||
Сложность: !!!. | |||
""" | |||
lst_to_set = set(lst_obj) # !!! | |||
lst_to_set = set(lst_obj) # !!! O(n) | |||
return lst_to_set |
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 j in range(len(lst_obj)): # !!!O(n) | ||
if lst_obj[j] in lst_obj[j+1:]: # !!!O(n) | ||
return False # !!!O(1) | ||
return True # !!!O(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.
выполнено
for i in range(len(lst_obj) - 1): # !!! O(n) | ||
if lst_copy[i] == lst_copy[i+1]: # !!! O(1) | ||
return False # !!! O(1) | ||
return True # !!! O(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.
выполнено
|
||
|
||
# O(n) | ||
def minn_elem_1(spis): |
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.
spis - это имя - транслитерация, что недопустимо по пеп-8
|
||
|
||
|
||
|
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.
для получения оценки Хорошо нужно решить правильно хотя бы 4 задачи
No description provided.