Remove Element from Array Time : Space : 123456789int Solution::removeElement(vector<int> &A, int B) { int res = 0; for(int i = 0; i < A.size(); i++) { if(A[i] == B) continue; A[res++] = A[i]; } return res;}