Computer Science, asked by nehabittu2107, 9 months ago

why binary search is better than linear search​

Answers

Answered by prince2220karan34
1

Explanation:

Binary search. Binary search is more efficientthan linear search; it has a time complexity of O(log n). The list of data must be in a sorted order for it to work. A binary search works by finding the middle element of a sorted array and comparing it to your target element.

please mark like and follow me

Similar questions