All Repeating Except Two
easy
1. You are given an array of numbers. 2. You have to find 2 non-repeating numbers in an array. 3. All repeating numbers are repeating even number of times.
Constraints
1 <= n <= 10^9 1 <= a1,a2.. <= 10^9
Format
Input
A number n a1 a2.. n numbers
Output
2 Non-repeating number
Example
Sample Input
6
23 27 23 17 17 37
Sample Output
27
37
Question Video