DarrenHang

Results 3 comments of DarrenHang

private int[] removeRepeat2(int[] array) { HashSet hashSet = new HashSet();//去重 for (int i = 0; i < array.length; i++) { hashSet.add(array[i]); } Set set = new TreeSet(hashSet);//排序 Integer[] integers =...

> // 有序数组去重,返回新数组长度 > private int removeDuplicates(int A[]) { > int i = 0; // 第一个指针 > int j; // 第二个指针 > int n = A.length; > if (n //...