Skip to content

first commit#1

Open
Barrakuda8 wants to merge 3 commits into
mainfrom
lesson1
Open

first commit#1
Barrakuda8 wants to merge 3 commits into
mainfrom
lesson1

Conversation

@Barrakuda8

Copy link
Copy Markdown
Owner

No description provided.

Comment thread task_1.py

print(check_1(lst))
print(check_2(lst))
print(check_3(lst))

Copy link
Copy Markdown

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
user_list = [2, 3, 4, 10, 1, 8]

print(min_n2(user_list))
print(min_n(user_list)) No newline at end of file

Copy link
Copy Markdown

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

print(max3_1(companies))
print(max3_2(companies))
print(max3_3(companies)) No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

выполнено

Comment thread task_4.py Outdated
"""


def check_1(dct): # O(бесконечность) - цикл while True

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

O(бесконечность) - у нас есть такая сложность?

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

такой сложности нет, но какая тогда должна быть сложно у цикла while True? и он считается линейным циклом, потому что n - количество его итераций?

Comment thread task_4.py
break
else:
answer = input('Хотите активировать учётную запись?: ')
if answer.lower() == 'да':

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

O(n^2) - n * n

уверены?
проставьте сложности кажждого выражения

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

слишком быстро смотрел. очевидно цикл константный, а значит сложность итоговая - линейная

Comment thread task_5.py
for _ in range(7):
stack.pop_out()
print(stack.get_quantity())

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

выполнено

Comment thread task_6.py
to_rework.from_queue().is_done()
print(to_do)
print(to_rework)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

выполнено

Comment thread task_7.py
return still_equal


print(pal_checker("молоко делили ледоколом")) No newline at end of file

Copy link
Copy Markdown

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