The binary search algorithm is used to search for a given item when items are sorted. If the number of items is 1 million, which of the following is the closest to the maximum number of comparisons required to find the item.

A 15

B 20

C 25

D 30

Solution

Correct Answer: Option B

Practice More Questions on Our App!

Download our app for free and access thousands of MCQ questions with detailed solutions