摘要: @Test public void shellSort() { int[] array = {7, 3, 2, 9, 15, 1, 14}; for (int increment = array.length / 2; increment 0; increment /= 2) { for (int 阅读全文
posted @ 2017-08-26 01:22 java_Word 阅读(134) 评论(0) 推荐(0) 编辑
摘要: @Test public void insertSort() { int[] array = {7, 3, 2, 9, 15, 1, 14}; for (int i = 1; i 0; j ) { if (array[j] 阅读全文
posted @ 2017-08-26 01:11 java_Word 阅读(96) 评论(0) 推荐(0) 编辑