Remove All Occurrences

Python Easy 2 views
Back to Questions

Problem Description

Read n integers and value x. Remove all x and output remaining numbers. If nothing left output EMPTY.

Input Format

Line1 n. Line2 n integers. Line3 x.

Output Format

Remaining numbers or EMPTY.

Sample Test Case

Input:
6 1 2 2 3 2 4 2
Output:
1 3 4

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next