Ad
  • Custom User Avatar

    bro you wont die from typing out args 1 time

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    That is kata creators fault and I cannot get honor for this kata. I would like to get some help.

    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?

  • Default User Avatar

    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.

  • Custom User Avatar

    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 get O(n*log(n)), which is considerably slower.

  • Default User Avatar

    It needs to be more efficient in order to pass the full test suite.

  • Default User Avatar

    My code works in the test, but when i try to attepmpt it i have an error: "Timed out"