Given an array of n elements, you have to design an algorithm to find kth smallest elements in sorted order. The Time complexity of the best such algorithm is?

1
O(Klogn)
2
O(n + Klogk)
3
θ (n2)
4
θ (nlogk)

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation