in Algorithms retagged by
184 views
0 votes
0 votes

Worst case time complexity of heap sort for n elements

  1. O(nlogn)
  2. O(logn)
  3. O^2
  4. O(n)
in Algorithms retagged by
by
184 views

1 Answer

0 votes
0 votes
Heap sort gives the worst case when array elements are sorted in reverse order. so the time complexity should be $O(nlogn)$

Option $(A)$ is correct.