logo

Crowdly

What is the Big-O notation that can best describe the following algorithm? pro...

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

What is the Big-O notation that can best describe the following algorithm?

procedure Alg1(A): A is a list of n integers

1    m = A[0]

2    for i = 1 to n-1

3        if m < A[i] then 

4            m = A[i]

5        end of if

6    end of for

7    return m

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

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

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