Two numbers with odd occurrences
Given an unsorted array, arr[] of size N and that contains even number of occurrences for all numbers except two numbers. Find the two numbers in decreasing order which has odd occurrences.
- Time : O(n)
- Space : O(1)
c++
1 | class Solution{ |