April 2018
Beginner to intermediate
426 pages
10h 19m
English
The binary search algorithm works similar to the number guessing game, in which someone says "I'm thinking of a number between 1 and 100". We will begin by responding with a number, and the person will say "higher", "lower", or that we got it right.
To make the algorithm work, the data structure needs to be sorted first. These are the steps that the algorithm follows: