摘要: 快速排序:面试前看,时间复杂度:nlog2n; 冒泡排序:时间复杂度:n2; 其他:面试前看; 阅读全文
posted @ 2021-01-31 13:49 pilipalala 阅读(52) 评论(0) 推荐(0)
摘要: package com.atguigu.java; public class Bubblesort { public static void main(String[] args){ int arr[] = new int[]{-12,-52,52,24,65,94}; for(int i = 0; 阅读全文
posted @ 2021-01-31 13:05 pilipalala 阅读(74) 评论(0) 推荐(0)
摘要: package com.atguigu.java; public class ArrayTest2 { public static void main(String[] args){ int[] arr1 = {-1,5,8,9,15,47,68,94}; //必须有序 int dest = 5; 阅读全文
posted @ 2021-01-31 00:49 pilipalala 阅读(56) 评论(0) 推荐(0)
摘要: //package com.atguigu.java; public class ArrayTest2 { public static void main(String[] args){ String[] arr1 = {"aa","bb","cc","dd"}; /*for(int i = 0;i 阅读全文
posted @ 2021-01-30 23:26 pilipalala 阅读(81) 评论(0) 推荐(0)
摘要: Math.random( ); //范围 [0.0 , 1.0); 例:获取任意两位整数。 (int) (Math.random( ) * 90 + 10) // 范围 [10 , 100) > [10,99]; 阅读全文
posted @ 2021-01-30 17:52 pilipalala 阅读(89) 评论(0) 推荐(0)
摘要: package com.atguigu.java; public class YangHuiTest1 { public static void main(String[] args){ int YangHui[][] = new int[10][]; for(int i = 0;i < YangH 阅读全文
posted @ 2021-01-30 17:41 pilipalala 阅读(47) 评论(0) 推荐(0)
摘要: details 阅读全文
posted @ 2021-01-28 12:34 pilipalala 阅读(416) 评论(0) 推荐(0)