Remove Element

#27
Easy
Two Pointers
O(n)
O(1)
Amazon
Microsoft
Google
View on LeetCode

Problem Description

Given an integer array nums and an integer val, remove all occurrences of val in nums in-place.