字符串和數組面試總結

一. 排序算法 1. 選擇排序 void selectionSort(int* arr, int n){ for(int i = 0; i < n; i++){ int minIndex = i; for(int j = i + 1; j < n; j++) if(arr[minIndex] > arr[j]) minIndex = j; swap(arr[minInd
相關文章
相關標籤/搜索