24. For sorting n integers, which of the following statements is true?
(A) Both quick sort and merge sort have O(nlogn) worst-case time complexity.
(B) Both quick sort and merge sort are stable sorting algorithms.
(C) Both quick sort and merge sort do not need extra space.
(D) Heap sort achieves O(nlogn) average-case time complexity.
(E) Heap sort needs extra space during sorting.

答案:登入後查看
統計: A(1), B(0), C(1), D(1), E(0) #2826219

詳解 (共 1 筆)

#5274655
答案為(D)(A):quick sort...
(共 134 字,隱藏中)
前往觀看
0
0