A binary search function is searching for a value that happens to be stored in the middle

Question:

A binary search function is searching for a value that happens to be stored in the middle element of an array. How many times will the function read an element in the array before finding the value?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: