随笔分类 -  数据结构算法

摘要:public class InsertSort { public static void main(String[] args) { int[] arr = {500, 465, 78, 99, 3, 64}; insertSort(arr); } public static void insert 阅读全文
posted @ 2020-04-04 23:13 平凡岁月 阅读(153) 评论(0) 推荐(0)
摘要:public class BubbleSort { public static void main(String[] args) {// int arr[] = {3, 9, -1, 10, -2}; int[] arr = new int[10000]; for (int i = 0; i < a 阅读全文
posted @ 2020-04-04 22:54 平凡岁月 阅读(155) 评论(0) 推荐(0)
摘要:public class BubbleSort { public static void main(String[] args) {// int arr[] = {3, 9, -1, 10, -2}; int[] arr = new int[10000]; for(int i=0;i<arr.len 阅读全文
posted @ 2020-04-04 22:52 平凡岁月 阅读(160) 评论(0) 推荐(0)