摘要: ``` package test; public class MergeSort { public static void main(String[] args) { // TODO Auto generated method stub int[] arr = { 10, 9, 8, 7, 6, 5 阅读全文
posted @ 2018-08-27 22:05 LynnMin 阅读(143) 评论(0) 推荐(0) 编辑
摘要: ``` package test; public class HeapSort { public static void main(String[] args) { int[] arr = {10,9,8,7,6,5,4,3,2,1}; System.out.print("排序前;"); print 阅读全文
posted @ 2018-08-27 20:15 LynnMin 阅读(102) 评论(0) 推荐(0) 编辑
摘要: ``` package demo; public class ShellSort { public static void main(String[] args) { int[] arr = {5,4,3,2,1,0}; printArr(arr); shellSort(arr); printArr 阅读全文
posted @ 2018-08-27 16:42 LynnMin 阅读(103) 评论(0) 推荐(0) 编辑