Multiple Choice
In the following code, what is the algorithm's complexity? minIndex = 0
CurrentIndex = 1
While currentIndex < len(lyst) :
If lyst[currentIndex] < lyst[minIndex]:
MinIndex = currentIndex
CurrentIndex += 1
Return minIndex
A) O( n 2)
B) O( n )
C) O(log2 n )
D) O2
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q18: The in operator performs a binary search
Q19: The first two numbers in the Fibonacci
Q20: What is the complexity of a selection
Q21: What should the missing code be in
Q22: Which of the following is a method
Q24: Which method of determining the efficiency of
Q25: What is the best case performance of
Q26: In the first step of the quicksort,
Q27: What should the missing code be in
Q28: In terms of complexity, what is the