What is the worst-case time complexity of Linear Search?

  • O(1)
  • O(log n)
  • O(n)
  • O(n^2)
The worst-case time complexity of Linear Search is O(n), where 'n' is the number of elements in the data. In the worst scenario, the search may have to check every element in the list to find the target, making it a linear time algorithm.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *