複選題

15. Consider an array A containing 10 integers 42, 3, 17, 22, 32, 7, 12, 74, 47, 8. We use quicksort to sort the integers in ascending order. The first element of the underlying sequence is used as the pivot. Which of the following are false after the first partition?
(A) A[5] = 7
(B) A[4] = 42
(C) A[8] = 47
(D) A[0] = 3

答案:登入後查看
統計: 尚無統計資料

詳解 (共 1 筆)

#6840834
1. 題目解析 題目要求我們使用快速排序...
(共 1078 字,隱藏中)
前往觀看
0
0