Binary Search
Easy+50 XPFind a target in a sorted array by repeatedly halving the search space.
Where it breaks
Binary search only works on a SORTED array. See what happens when you don't.
No visualization loaded.
Watch
—
i
Press Run to begin.
0/0
Find a target in a sorted array by repeatedly halving the search space.
Where it breaks
Binary search only works on a SORTED array. See what happens when you don't.
No visualization loaded.
—
Press Run to begin.