What is the worst case time complexity of inserting 'n' element into an empty…

2025

What is the worst case time complexity of inserting 'n' element into an empty linked list of the linked list need to be maintained in sorted order?

Answer: B. θ (n2)

  1. A.

    θ (1)

  2. B.

    θ (n2)

  3. C.

    θ (n)

  4. D.

    θ (n log n)

Attempted by 731 students.

Show answer & explanation

Correct answer: B

Explore the full course: Up Lt Grade Assistant Teacher 2025

Loading lesson…