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.
That's very clear to me. And you can look at the sample tests:
5 appears 3 times, and the expected answer is 5, so, it's the integer, not the times it appears.
You need to return the value of the integer that appears an odd number of times.
I don't understand what we are supposed to return. Do we return the value of the integer that appears an odd number of times? Or do we return the number of times the odd integer appeared? This kata is very unclear.
well, looks like it is my mistake. I did not understood correctly the word odd
Well, for [18, 1, 7, 1, 1, 1, 18, 18, 7], 18 occurs 3 times (odd number). The other array seems impossible, unless you're modifying the input. (but if so, 3 occurs 7 times, so it's a valid answer)
This comment is hidden because it contains spoiler information about the solution
incredible