2011年3月29日
摘要: int partition(int arr[], int low, int high);void quickSort(int arr[], int low, int high){ int pivotKey = partition(arr, low, high); quickSort(arr, low, pivotKey - 1); quickSort(arr, pivotKey + 1, high);}int partition(int arr[], int low, int high){ arr[0] = arr[low]; while (low < high) { while (lo 阅读全文
posted @ 2011-03-29 23:17 辉夜君麻吕 阅读(185) 评论(0) 推荐(0)