class Solution { public int removeDuplicates(int[] nums) { int idx = 0; for(int i=1; i