Find single in an array of 2n+1 integer elements
Given an array with 2n+1 integers, n elements appear twice in arbitrary places in the array and a single integer appears only once somewhere inside. Find the lonely integer with O(n) operations and O(1) extra memory. Examples : Input : { 1, 1, 2, 2, 3, 3, 4, 4, 5} Output : 5 Input : { 7, 9, 6, 8, 3,