//https://www.interviewbit.com/problems/remove-duplicates-from-sorted-array/ public class Solution { public int removeElement(ArrayList<Integer> a, int b) { int PA =0; int PB =0; while(PA < a.size()){ if(a.get(PA) == b){ a.remove(PA); }else{ PA++; } } return a.size(); } }
//https://www.interviewbit.com/problems/remove-duplicates-from-sorted-array/
public class Solution {
public int removeElement(ArrayList a, int b) {
int PA =0;
int PB =0;
}