摘要:
我们知道二分查找的基础写法有三种: 1. 左闭右闭区间 ```java public static int binsearch(int[] nums, int target) { int l = 0, r = nums.length - 1; while (l target) { r = m - 1 阅读全文
摘要:
Java实例内部类 (1)在外部类的静态方法和外部类以外的其他类中,必须通过外部类的实例创建内部类的实例。 public class External { class Inner { } Inner inner = new Inner(); public void func1() { Inner i 阅读全文