插入排序
摘要:public class InsertSort { public static void main(String[] args) { int[] arr = {58, 5, 10, 2, 47}; for (int i = 1; i < arr.length; i++) { int num = ar
阅读全文
posted @
2022-11-14 16:46
小贤看世界
阅读(14)
推荐(0) 编辑
选择排序
摘要:import java.util.Arrays;/** * @Author:Zxb * @Version:1.0 * @Date:2022/11/14-16:03 * @Since:jdk1.8 * @Description: */ public class SelectSort { public
阅读全文
posted @
2022-11-14 16:26
小贤看世界
阅读(14)
推荐(0) 编辑
冒泡排序Bubble Sort
摘要:import java.util.Arrays;/** * @Author:Zxb * @Version:1.0 * @Date:2022/11/14-15:45 * @Since:jdk1.8 * @Description: */ public class BubbleSort { public
阅读全文
posted @
2022-11-14 16:25
小贤看世界
阅读(31)
推荐(0) 编辑