LearningSolvesv1
Binary search halves a sorted search space
Each comparison rules out one side of an ordered list.
Relationship
What connects the input and output?
Compare the target with the middle item. Continue only in the half that can contain it, repeating until found or no items remain.
Sources
1Discussion
0Sign in to join the discussion.