Collections.sort()和Arrays.sort()排序算法選擇

今天面試的時候,被問到Collections.sort();和Arrays.sort();兩個方法的排序算法實現,我只記得一個是快速排序一個是歸併排序,可是剛剛看到沒那麼簡單。html Arrays.sort() 先來看看Arrays.sort();,一點進這個方法會看到是這樣子的java public static void sort(int[] a) { DualPivotQuicks
相關文章
相關標籤/搜索