class Solution {
public int removeDuplicates(int[] nums) {
int L1 = nums.length;//数组长度
int q1 = 1;//快指针
int q2 = 1;//如果不为空最少都有一个长度
if(L1 == 0) {
return 0;
}
for(;q1 < L1;q1++) {
if( nums[q1] != nums[q1]-1) {
nums[q2] = nums[q1];
q2++;
}
q1++;
}
return q2;
}
}



