Linear search has time complexity:
-
A
O(1)
-
B
O(log n)
-
C
O(n)
Correct answer
-
D
O(n²)
10 views
Explanation
Linear search: O(n). Source: FBISE Class 12 Computer Science syllabus-aligned item.
Reference
Asked in: Matric,FBISE
Doubts & discussion
Not sure why the answer is C? Ask here and get an explanation.
Ask a doubt about this MCQ