Unique Elements Problem
Unique Elements Problem — ExecCode School DSA Practice
Solve the Unique Elements problem on ExecCode. Free online school DSA practice in Arrays - Logic Building. Write and run code in Java, C++, Python — no signup required to run.
Problem description
You are given a list of whole numbers. Your task is to solve Unique Elements. Print only the numbers that appear once in the list.
Examples
Input 5 1 2 3 4 5; Output 1 2 3 4 5. Input 5 1 2 1 3 2; Output 3
Constraints
1 <= N <= 1000 -10^6 <= array[i] <= 10^6
Practice Unique Elements free on ExecCode. Browse DSA problems, topic map, and placement guides.