All Repeating Except One
easy
1. You are given an array of numbers. 2. All numbers occur twice in the array except one. 3. You have to find that number by traversing only once in the array and without using any extra space.
Constraints
1 <= n <= 10^9 1 <= a1,a2.. <= 10^9
Format
Input
A number n a1 a2.. n numbers
Output
Non-repeating number
Example
Sample Input
5
23 27 23 17 17
Sample Output
27
Question Video