Quiz on Sorting and Searching

Test your understanding of sorting and searching algorithms.

1

What is the time complexity of the binary search algorithm?

A)

O(n2)O(n^2)

B)

O(n)O(n)

C)

O(logn)O(\log n)

D)

O(nlogn)O(n \log n)

Question 1 of 100 attempted

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.