改进的冒泡算法
摘要:在百度百科中的代码: void bubble_sort(int a[], int n) { int i, j, temp; for (j = 0; j < n - 1; j++) for (i = 0; i < n - 1 - j; i++) { if(a[i] > a[i + 1]) { temp
阅读全文
posted @ 2016-04-15 09:42
https://blog.csdn.net/xiaobin_HLJ80 http://blog.chinaunix.net/uid/31552151.html
posted @ 2016-04-15 09:42