09 2022 档案

摘要:方法一:直接for循环 时间复杂度为O(n2) 优点:简单 缺点:效率太低 public static int maxArea1(int[]height){ int max=0; int area=0; for (int i=0;i<height.length-1;i++){ for (int j= 阅读全文
posted @ 2022-09-13 10:25 晚生小白 阅读(34) 评论(0) 推荐(0) 编辑
摘要:public int reverse(int x){ int size=0; int result=0; boolean boo=true; if (x==0){ return 0; } int temp=x; while (temp!=0){ temp/=10; // 注意:这个判断不能在whil 阅读全文
posted @ 2022-09-05 22:07 晚生小白 阅读(169) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示