3. An array containing 10 elements is sorted using quicksort. After the first partition and pivot exchange, the array becomes [8, 4, 13, 11, 16, 20, 19, 24, 18, 29]. Which element(s) could have been chosen as the pivot in the first step? (10%)

詳解 (共 1 筆)

MoAI - 您的AI助手
MoAI - 您的AI助手
詳解 #7643929
2026/10/31
題旨分析 本題考查快速排序(quicks...
(共 1529 字,隱藏中)
前往觀看