上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 30 下一页
摘要: import java.util.Arrays;public class Main { public static void main(String []args) { int []a={3,1,6,0,-8,6,3,5,9,4}; XuanZe(a); System.out.println(Arr 阅读全文
posted @ 2024-02-16 21:59 赵千万 阅读(3) 评论(0) 推荐(0)
摘要: import java.util.Arrays;public class Main { public static void main(String []args) { int []a={3,1,6,0,-8,6,3,5,9,4}; MaoPao(a); System.out.println(Arr 阅读全文
posted @ 2024-02-15 21:50 赵千万 阅读(5) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2024-02-14 21:31 赵千万 阅读(5) 评论(0) 推荐(0)
摘要: import java.util.Arrays;public class Main { public static void main(String[] args) { int []arr1={-1,-1,-4,1,3,2,2,4,5,6,5,9,7,9,0}; int []arr2={-1,2,0 阅读全文
posted @ 2024-02-13 21:56 赵千万 阅读(53) 评论(0) 推荐(0)
摘要: 当我需要10个ArrayList<Integer> for(int i=0;i<10;i++) { A.add(new ArrayList<>()); } 阅读全文
posted @ 2024-02-12 23:09 赵千万 阅读(9) 评论(0) 推荐(0)
摘要: public class Main { public static void main(String[] args) { int[] nums = {2,4,6,2,3,4,6,7,8,9,0,1}; int []num1=new int[12]; for (int i = 0; i < num1. 阅读全文
posted @ 2024-02-11 23:04 赵千万 阅读(7) 评论(0) 推荐(0)
摘要: import java.util.Arrays;public class Main { public static void main(String[] args) { int[] nums = {-1, -1, -1, 2, 2, 2, 3, 3, 3, 5, 6, 7, 8, 0, 0}; Sy 阅读全文
posted @ 2024-02-09 22:19 赵千万 阅读(4) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2024-02-08 21:32 赵千万 阅读(8) 评论(0) 推荐(0)
摘要: 用到了桶排序,0-9共计10个桶,从各位开始每位数比较 import java.util.ArrayList;public class Main { public static void main(String[] args) { String[] a = new String[10]; a[0] 阅读全文
posted @ 2024-02-07 21:29 赵千万 阅读(7) 评论(0) 推荐(0)
摘要: 桶排序(BucketSort) 桶排序(Bucket sort)或所谓的箱排序,是一个排序算法,工作的原理是将数组分到有限数量的桶里。每个桶再个别排序(有可能再使用别的排序算法或是以递归方式继续使用桶排序进行排序),最后依次把各个桶中的记录列出来记得到有序序列。桶排序是鸽巢排序的一种归纳结果。当要被 阅读全文
posted @ 2024-02-06 20:35 赵千万 阅读(12) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 30 下一页