摘要:
public static void insertionSort(int[] arr) { int in,out; for(out=1;out<arr.length;out++) { int temp=arr[out]; in=out; while(in>0&&arr[in-1]>temp) { arr[in]=arr[in-1]; --in; } arr[in]=temp; } }比冒泡排序和选择排序效率高。 阅读全文
posted @ 2013-06-06 08:59
刘文天
阅读(122)
评论(0)
推荐(0)

浙公网安备 33010602011771号