logo

Crowdly

Estimate the complexity of the following function in terms of the input integer ...

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

Estimate the complexity of the following function in terms of the input integer n:

def mystery(n: int) -> None:

result = 0

for i in range(10000000):

j = n

while j > 2:

result += i

j /= 2

return result

0%
0%
0%
100%
Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на learning.monash.edu?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!