Problem Description

Task: remove all occurrences of val in-place and return new length (order can change).

Input Format

Java method

Output Format

Return value

Constraints

O(n) time.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next