摘要:
冒泡排序C语言版:在每轮排序中检查时候有元素位置交换,如果无交换,说明数组元素已经有序,无需继续排序 1 #include <stdio.h> 2 #include <stdlib.h> 3 void bubble_sort(int array[], int n) 4 { 5 for(int i = 阅读全文
posted @ 2018-04-27 21:22
SaraMorning
阅读(223)
评论(0)
推荐(0)

浙公网安备 33010602011771号