Search⌘ K
AI Features

Remove Element

Remove Element asks you to delete every occurrence of a target value from an integer array in place, then return how many values remain, with them in the array's first positions.

Statement

You are given an integer array, nums, and an integer, val. Your task is to remove all occurrences of val ...