Comparisons in binary search

1 000 elements → 10 comparisons

You can also choose a level by clicking its number.

About the course

Description
The maximum number of comparisons binary search needs in a sorted array
More information
Arrays are indexed from zero. Sorting is ascending (from the smallest) unless stated otherwise.
Sample question
1 000 elements → 10 comparisons
Author
Jiří Preisler
Version
1.0