UNIQUE NUMBERS
CodeChefOpen on judge ↗
WAP which will take an array of integers as input and gives an array of integers with unique numbers as output. ###Input: - First line consists $N$ of size of array. - Each of the next $N$ lines contain an integer $X$. ###Output: Print each unique number in each line. ###Constraints - $1 \leq N < 10^3$ - $1 \leq X < 10^9$ ###Sample Input: 8 2 3 6 2 7 2 4 6 ###Sample Output: 3 7 4 ###
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start