first commit#1
Open
Barrakuda8 wants to merge 3 commits into
Open
Conversation
|
|
||
| print(check_1(lst)) | ||
| print(check_2(lst)) | ||
| print(check_3(lst)) |
| user_list = [2, 3, 4, 10, 1, 8] | ||
|
|
||
| print(min_n2(user_list)) | ||
| print(min_n(user_list)) No newline at end of file |
|
|
||
| print(max3_1(companies)) | ||
| print(max3_2(companies)) | ||
| print(max3_3(companies)) No newline at end of file |
| """ | ||
|
|
||
|
|
||
| def check_1(dct): # O(бесконечность) - цикл while True |
There was a problem hiding this comment.
O(бесконечность) - у нас есть такая сложность?
Owner
Author
There was a problem hiding this comment.
такой сложности нет, но какая тогда должна быть сложно у цикла while True? и он считается линейным циклом, потому что n - количество его итераций?
| break | ||
| else: | ||
| answer = input('Хотите активировать учётную запись?: ') | ||
| if answer.lower() == 'да': |
There was a problem hiding this comment.
O(n^2) - n * n
уверены?
проставьте сложности кажждого выражения
Owner
Author
There was a problem hiding this comment.
слишком быстро смотрел. очевидно цикл константный, а значит сложность итоговая - линейная
| for _ in range(7): | ||
| stack.pop_out() | ||
| print(stack.get_quantity()) | ||
|
|
| to_rework.from_queue().is_done() | ||
| print(to_do) | ||
| print(to_rework) | ||
|
|
| return still_equal | ||
|
|
||
|
|
||
| print(pal_checker("молоко делили ледоколом")) No newline at end of file |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.