37. Assume that quicksort is being used to sort an array A with values 4 2 8 73 1 5 6. After the first invocation to the partition algorithm the array looks like this: 2 3 1 4 7 5 8 6. Which value could have been chosen as the pivot?
(A) 4
(B)7
(C)1
(D)3
(E)8

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

詳解 (共 1 筆)

#7102365
題目解析 本題中,我們需要分析快速排序...
(共 989 字,隱藏中)
前往觀看
0
0