摘要:
1.冒泡排序: 1 //第二种方法是通过不遍历有序数组来减少遍历次数,还有第三种方法:同时左右遍历,减少遍历次数 2 //sort the array bubbleWay:(the normal way) 3 - (void) InsertSort(int *a){ 4 int n = st... 阅读全文
摘要:
1.冒泡排序: 1 //第二种方法是通过不遍历有序数组来减少遍历次数,还有第三种方法:同时左右遍历,减少遍历次数 2 //sort the array bubbleWay:(the normal way) 3 - (void) InsertSort(int *a){ 4 int n = st... 阅读全文
|