Smallest array forcing 7 probes
Binary search on a sorted array of elements needs comparisons in the worst case. What is the smallest array size for which the worst case reaches exactly 7 comparisons?
Show hints (2)+
- means .
- Exponentiate: , so the smallest is at the low end.
Answer
Reveal answer →Final answer
64
Want the full step-by-step worked solution? It's part of Premium - along with a worked solution for every question in the bank.
Asked at: Timed Mental-Math & Sequences, Game-Based Aptitude