Please enable JavaScript to use CodeHS

AP CSA: CON-2.P.2

CodeHS Lessons

The binary search algorithm starts at the middle of a sorted array or ArrayList and eliminates half of the array or ArrayList in each iteration until the desired value is found or all elements have been eliminated.