Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Actually, the code has to return the amount of times that a number appears. If amount be odd number, return number that mathces with the amount. For example, in the array [0], return 0 because appears only 1 time, that is a odd number.
The description is very clear:
find the one that appears an odd number of times
. It's not at all about selecting odd or even numbers.Anyway, not a suggestion.