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.
bro you wont die from typing out args 1 time
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
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?
I wrote the solution of this kata on c#. The code works perfectly, it 100% passes all tests. When i press "Test" it passes the "BasicTests", but when I press "Attempt" it doesn't pass "BasicTests" with "Input string was not in a correct format" exception and passes 50 random tests. That is kata creators fault and I cannot get honor for this kata. I would like to get some help.
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.
My code works in the test, but when i try to attepmpt it i have an error: "Timed out"