Skip to content
- Home
- Engineering
- Computer Engineering
- Which of the following has a time complexity of O(n)?
Which of the following has a time complexity of O(n)?
-
A
Linear search
Correct answer
-
B
Big-O notation
-
C
An in-order traversal of a binary search tree
-
D
A complete binary tree of height h
Correct answer
A. Linear search
Explanation
The answer is Linear search.
Doubts & discussion
Not sure why the answer is A? Ask here and get an explanation.
Ask a doubt about this MCQ
Need help? Find an MCQ, a short question, a test or your certificate. Just ask.