Quiz: Running Time of Algorithms

Test your knowledge of the running time of algorithms by completing this quiz.

1

What would be the time complexity for an algorithm that runs in exponential time?

A)

O(n2)O(n^2)

B)

O(nlogn)O(nlogn)

C)

O(2n)O(2^n)

D)

O(n)O(n)

Question 1 of 50 attempted

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