Which of the following is the correct ascending order of complexity in terms…

Which of the following is the correct ascending order of complexity in terms of growth rate?

  1. A.

    O(n), O(n2), O(n log n), O(log n)

  2. B.

    O(log n), O(n), O(n log n), O(n2)

  3. C.

    O(n2), O(n log n), O(n), O(log n)

  4. D.

    O(log n), O(n2), O(n log n), O(n)

Attempted by 456 students.

Sign up free to check your answer

Sign up free

Explore the full course: Isro

Loading lesson…