Question:

What is the best case time complexity for linear search?

Show Hint

Best case for linear search is when the target is first element — only one check needed.
Updated On: June 02, 2025
  • \(O(n \log n)\)
  • \(O(\log n)\)
  • \(O(n)\)
  • \(O(1)\)
Hide Solution
collegedunia
Verified By Collegedunia

The Correct Option is D

Solution and Explanation

In the best case, the element is found at the first index in linear search. So only one comparison is required ⇒ constant time.
Was this answer helpful?
0
0

TS PGECET Notification