What is the worst-case time complexity of inserting an element into a sorted…

PYQ CoCubes 2024

What is the worst-case time complexity of inserting an element into a sorted array?

  1. A.

    O(n log n)

  2. B.

    O(log n)

  3. C.

    O(n)

  4. D.

    O(n2)

Attempted by 1491 students.

Sign up free to check your answer

Sign up free

Explore the full course: Cdac C Cat Complete Preparation

Loading lesson…