arrow_back Back to Challenges

#27 Remove Element

Easy Acceptance 0%
description

Problem Description

Given an integer array `nums` and an integer `val`, remove all occurrences of `val` in `nums` in-place. The order of the elements may be changed. Return the number of elements in `nums` which are not equal to `val`.

checklist Constraints

See problem description for detailed constraints.

science Examples

Case #1

In: # See problem description for input format
Out: # Expected output

Mastery Tags

Arrays Two Pointers

Hiring Companies

Apple Uber
code

Integrated IDE

code_blocks
Coding
psychology
Aptitude