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.
ohmyGOD
i think code is bad for large arrays, am i wrong?
the dictionary is already provided, funnily enough it's the same name as your table
This comment is hidden because it contains spoiler information about the solution
this could require a lot of space with larger arrays. What if the outlier is the last number in a very large array? You'd have to append the entire array. What if you just used a while loop that breaks after one list has more than one integer to determine if the array is even or odd and then iterated through the list to return the outlier.
omg
This doesn't even work for large odd lists...
ok now i can sleep peacefully thankyou
Love it!!!
simply beautifull!
Clever!
ahh, yes.
thanks for correcting my statement!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I submitted the solution above and one slightly refactored variation 9 years ago. I definitely did not copy from StackOverflow and I claim my solution original. I have no idea how a number of people came up with the exact solution of mine. Note that you can see other solutions once you solved a kata. Interestingly many of the accounts above where suspended.
Loading more items...