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.
The Java translation has no random tests.
The random tests don't work: the hardcoded string "kata editor" is passed for every random test instead of the randomly generated string.
The input can be found in rdi. It looks like Codewars uses the same calling convention that is described on this site, where the first six integer arguments of a function are stored in rdi, rsi, rdx, rcx, r8, and r9.
Lua translation available
Wow! There really is an instruction for everything.
If you print out the array in your function, you may see for yourself what is being passed in, and if it is already sorted or not. You may also try returning a hardcoded answer for the first testcase and see what passes and what fails.
This was a lot of fun! :)
This comment is hidden because it contains spoiler information about the solution
Thank you! This is definitely a better way to format the error messages.
Python translation forked to prevent the user from tampering with the test data. See here
I wrote a fork for the Python translation that addresses this oversight (Kata author is inactive).
I have no problem with that, do whatever you need to do :)
I don't know how I would fix that.
Yikes. I changed it in the translation fork, but not for the published kata. Thanks for keeping me on my feet @nad-garraz, it should finally be in there now.
Nope.
Loading more items...