Concept Flow - Why Binary Search and What Sorted Order Gives You
Start with sorted array
Set low and high pointers
Calculate mid = (low + high) / 2
Compare target with array[mid
Move high
Repeat until low > high
Target not found
Binary search works on sorted arrays by repeatedly dividing the search range in half, comparing the middle element to the target, and narrowing the search until the target is found or the range is empty.