1. Computer Science Engineering (CSE)
  2. Data Structures (DS)
  3. What is the worst-case time for heap sor...
Q.

What is the worst-case time for heap sort to sort an array of n elements?

A. O(log n).
B. O(n).
C. O(n log n).
D. O(n²).
Answer» C. O(n log n).
View all MCQs in:   Data Structures (DS)

Discussion