DSA Master
Home
Problems
123
Schedule
17 Patterns
Data Structures
PDF Guide
Back to Problems
Mark as Complete
Remove Element
#27
Easy
Two Pointers
O(n)
O(1)
Amazon
Microsoft
Google
View on LeetCode
Description
Approach
Solution
Related
Problem Description
Given an integer array nums and an integer val, remove all occurrences of val in nums in-place.