Worst-Case Binary Search Comparisons
Coding
Search
Easy
Hint 1
Each comparison in binary search halves the size of the remaining candidate range.
Hint 2
Find the smallest integer with .
Show worked solution
1. Relate comparisons to halving the search space
Binary search needs comparisons in the worst case to narrow candidates down to one.
Answer: 10
Related roles: Browse quant jobs