细数排序(1)
插入排序void insertsort(int *arr, int n){ int i; for (i = 0; i < n - 1; i++) { int end = i; int tmp = arr[end + 1]; while (end >= 0) { if (tmp < arr[end]) { arr[end + 1] = arr[end]; end--; } else { bre
Free Open Share