-
Notifications
You must be signed in to change notification settings - Fork 182
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
Чет не хочет... #1276
base: master
Are you sure you want to change the base?
Чет не хочет... #1276
Conversation
""" | ||
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.
выполнено
print(lst) | ||
print(check_min2(lst)) | ||
print(check_min(lst)) | ||
print(sorted(lst)) |
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(sorted_n(compamy)) | ||
|
||
'''лучшим вариантом будет функция sortetd_n так как имеет | ||
минимальную вычислительную сложность''' |
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.
где какая сложность?
не проставлено..
return 'Вы ввели не верный пароль' | ||
else: | ||
return "Пользователя не сущестует" | ||
'''самая быстрая проверка которая пришла на ум. Быстрая потому что нет цикла''' |
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.
нет второй реализации
taskBoard.add_to_current("Здача3") | ||
taskBoard.add_to_current("Здача4") | ||
print(taskBoard.base_queue.elements) | ||
print(taskBoard.from_revision()) |
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.