Loading practice questions
Which of the following is a disadvantage of linear search?
Correct Answer: B — Greater time complexities compared to other searching algorithms
Explanation:
The complexity of linear search as the name suggests is O(n) which is much greater than other searching techniques like binary search(O(logn)). Linear search is easy to implement and understand than other searching techniques.