Quiz on Sorting & Searching

Let's 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(logn)

D)

O(nlogn)O(nlogn)

Question 1 of 100 attempted

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