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.
Ugly
Spaghetti-code :E
I had the same idea. Worked out for both of us :)
Because this site doesn't allow to downvote like stackoverflow and others!!! In this way many really bad solutions pop up in top like shit in real life :)
Very very bad solution, why is there a vote as "best practice"?
I have same in java - what can be wrong?
not a good solution in my opinion, it looks almost as something hardcoded
I think, the java version of this Kata has errors:
Kata accept and return long[] arguments but in tests passed and expected int :(