We have an array which contains integer numbers (not any fixed range). Only
two numbers are repeated odd number of times and remaining even number of
times. Find the 2 numbers.
like
arr[]={1,2,5,1,5,1,1,3,2,2}
1 -> 4 times(even)
2-> 3 times(odd)
3-> 1 times(odd)
5-> 2 times(even)
output 2 3
m not able to come up with a non-hashing solution which is faster than n^2,
plz suggest both type of solutions viz. hashing and non-hashing one's.
--
You received this message because you are subscribed to the Google Groups
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/algogeeks?hl=en.