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 don't at all understand your post. I tried several solutions and they all passed without any problem. Then I saw that you had passed the kata... I suppose one of your first tries had a code error?
The full test suite has much more tests and with much larger
n
, than those you see in random tests.This task requires a solution with
O(n)
complexity to pass the tests. If you sort the result on each iteration, you'll getO(n*log(n))
, which is considerably slower.It needs to be more efficient in order to pass the full test suite.