nums.remove(val) return len(nums) s = Solution() s.removeElement([2, 0,1,2,2,3,0,4,2], 2) # i= 0 , num= 2 , nums= [2, 0, 1, 2, 2, 3, 0, 4, 2] # i= 1 , num= 1 , nums= [0, 1, 2, 2, 3, 0, 4, 2] # i= 2 , num= 2 , nums= [0, 1, 2,...