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
I've just tried a pair of naive solutions from the 7kyu and they don't pass a single large test. Sometimes they don't pass on the medium ones. I think it's ok, isn't it?
Well, there is not 3 kyu :D You mean the 7kyu?
(edited)
You mean one for the 3 kyu?
are you sure the basic algo cannot pass by chance?
That jump() function is really simple and clever!
Please fork and re-publish your translation. Cannot approve because there are some merge conflicts.
This comment is hidden because it contains spoiler information about the solution
L M A O
WOW
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.This comment is hidden because it contains spoiler information about the solution
It's not avaiable in Rust 1.15
@newmaidumosa sorry for long reply. that's good question, but i've never used it before. you can define them directly
Loading more items...