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.
I'm having the same problem, the random tests are off by one
Yes thanks you are right I see
This is very inefficient and unnecessary (I did the same when I solved this kata at first!), look at other solutions.
But the task is to check all the elements of the array, right?
606 people passed the Java kata. I tried your solution several times and it passes without problem.
Are you sure? I am unable to reproduce this. Do you have examples of such test cases?