See More

class Solution { public int removeElement(int[] nums, int val) { int idx=0; for(int i=0; i