You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You are given an array of integers. The special property of the array is that exactly two different elements occur once while other elements occur twice.
You are required to determine those two elements.
Input format
First line: Integer denoting the number of elements in the array
Second line: space-separated integers denoting the values in the array
Output format
Print two space-separated integers that occur once in the array in ascending order.