Challenge: Binary Search
Implement the binary search algorithm by coding the doSearch function according to detailed pseudocode. Learn to efficiently find a target value in a sorted array or return -1 if it's not present, gaining understanding of binary search mechanics and their practical application.
We'll cover the following...
We'll cover the following...
Complete the doSearch function so that it implements a binary search, following the pseudo-code below (this pseudo-code was described in the previous article): ...