Skip to content
C

Find Duplicate Values

Easyjavapythonccppjavascript

Given an array, find every value that occurs more than once.

Input Format

The first line contains an integer N. The second line contains N space-separated integers.

Output Format

Print the distinct duplicated values in increasing order, separated by single spaces. If there are none, print an empty line.

Input (stdin)

Output

Run your code to see output here...