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=
阅读全文
摘要: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
阅读全文