Oct-25-2020, 08:45 AM
(Oct-25-2020, 06:30 AM)omm Wrote: Question:
For a given list of numbers, only one digit is repeated odd number of times. Pass the list through function and return the number which is repeated odd number of times.
Sorry for the confusion. I did not write the question right earlier and I have corrected now. It has to return the only number which is repeated odd number of times (need not be an odd number). Example: [3,2,3,2,2]. Here, 2 is repeated 3 times and we need to return the number 2.
Thanks.