摘要: public class 求小和 { public static void main(String[] args) { int arr[] = {1,3,4,2,5}; System.out.println(smallSum(arr)); for(int a:arr){ System.out.pri 阅读全文
posted @ 2021-11-06 16:41 黯渊 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 来自视频学习:https://www.bilibili.com/video/BV13g41157hK?p=3 阅读全文
posted @ 2021-11-06 14:43 黯渊 阅读(22) 评论(0) 推荐(0) 编辑
摘要: public class 归并排序 { public static void main(String[] args) { int arr[] = {1,5,9,7,5,3,2,6,4,8}; mergeSort(arr); for(int a:arr){ System.out.print(a+" " 阅读全文
posted @ 2021-11-06 14:38 黯渊 阅读(23) 评论(0) 推荐(0) 编辑
摘要: public class Test { public static void main(String[] args) { int arr[] = {1,5,9,7,5,3,2,6,4,8}; System.out.println(getMax(arr)); } public static int g 阅读全文
posted @ 2021-11-06 10:22 黯渊 阅读(94) 评论(0) 推荐(0) 编辑