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.
you gotta be joking
Thanks for teaching me about this function!
Oh, waw. and i made the largest select case possible xD
Please, can you say how it's work? I would be pleasure )
Thanks! :)
It is a magic ;)
Getting odds and evens swapped? Your list has 2,3,4,5,6 appearing odd number of times, the kata states there will be exactly one that appears an odd number of times. And yes, this trick only works if the input follows the rule.
I've tested this solution out, and if we give a list like
[1, 1, 2, 3, 4, 5, 6]
, I get back 6. If I give it the list[1, 1, 2, 3, 4, 5]
, I get back 0.Cool kata. But i think this is 7 kyu kata.
it looks like only you have implemented this cause if not a string. I wonder that this Kata pass also without this case
It is very easy kata. Some 7kyu kata is harder