Linear search works on
Select one:
a. sorted and unsorted arrays
b. only on sorted arrays
Answers
Answered by
2
Answer:
Binary search works on sorted arrays. ... If the target value matches the element, its position in the array is returned. If the target value is less than the element, the search continues in the lower half of the array. If the target value is greater than the element, the search continues in the upper half of the array.
Explanation:
hope it helps
Similar questions