Top | MCQs on Binary Search Algorithm with Answers | Question 10

Last Updated :
Discuss
Comments

The time taken by binary search algorithm to search a key in a sorted array of n elements is

O ( n log2n )

O ( n )

O ( n^2)

O(log2n)

Share your thoughts in the comments