
407.2K
KRHow Binary Search Works
Binary search works by repeatedly dividing the search interval in half. If the value of the search key is less than the item in the middle of the interval, the algorithm narrows the interval to the lower half. Otherwise, it narrows it to the upper half. The process repeats until the value is found or the interval is empty.
@kreggscode










