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.
Not an issue.
corrected
corrected
For me, it just gives a bunch of errors. Solved it in JS to downvote it too lol
No, with a better algorithm, it is possible with Java.
Your code is really naive, and it is the main reason for the timeout ;-).
It was the only way to complete the kata in Java without going over time.
Why "java sucks"?
It seems that the idea here is that a solution should be able to sort any array, i.e. object arrays (
Object[]
,String[]
,Integer[]
and so on),int[]
,long[]
,float[]
,double[]
and so on.The Java version has problems with its tests. It errors back "Cannot convert long to int" even though the method is to return an int[]. I solved this in JS just so I could downvote it.
In this case, if there is a real problem, create this comment as an issue!
The Java version has problems with its tests. It errors back "Cannot convert long to int" even though the method is to return an int[]. I solved this in JS just so I could downvote it.
Waaaaay too easy
This kata should be rated lower. I passed all but one test for the longest time, and it only gave me a cryptic error message.