摘要: 插入排序 1 public static void insertSort(Comparable[] array) 2 { 3 int j = 0; 4 5 for (int i = 1; i < array.length; i++) { 6 Comparable temp = array[i]; 7 8 for (j = i; j > 0 && (temp.compareTo(array[j - 1]) < 0); j--) { 9 ... 阅读全文
posted @ 2012-07-02 16:06 rilley 阅读(257) 评论(0) 推荐(0) 编辑