How many elements would have to be looked (binary search) at in order to find an integer 5000 at element 499 and an integer 7282 at element 686 assuming it's binary search algorithm and total number of elements in the array are 1000?
I do have a theory though (see my theory below:)
1000/2= the first element is 500 element
500/2 the next element is 250 element.
I do have a theory though (see my theory below:)
1000/2= the first element is 500 element
500/2 the next element is 250 element.
Comment