Question: If you have a sorted array of 1000 elements, how many iterations will binary search take to find an element?
Options:
Correct Answer: 9
Solution:
Binary search will take log2(1000) which is approximately 9.97, so it will take at most 10 iterations.