What is the worst case time complexity of inserting n elements into an empty linked list, if the linked list needs to be maintained in sorted order?

1
Θ(n)
2
Θ(n log n)
3
Θ(n2)
4
Θ(1)

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation