Ad
  • Custom User Avatar

    Paradox is that you raised an issue for a kata but it's your solution which is wrong.

    If you checked errors separately and code produced desired result, but when tested in bunch it did not produce desired result, then you also probably should test the code with many inputs, and not separately.
    If you still cannot find the problem with your code, you can post it here so we will take a look (remember about markdown formatting and spoiler flag when posting code!).

  • Default User Avatar

    In javascript, I wrote various possible optimization solutions.
    Errors where they should not be ... Every start programm in kata produces a different number of errors 10-30 (I checked the errors separately, the code produced the desired result)
    What is the paradox?

  • Custom User Avatar

    sound reasonable. I would check it again

  • Custom User Avatar

    Probably it's not O(n) as you think.

  • Custom User Avatar

    My O(n) solution got time out error. LOL! Just 1 failure case because of time out error and I cannot submit my solution.

  • Custom User Avatar

    In this kata, you don't need to use up all directions. In the third test case, you can get to the finish point by ("N","N","N","N","N","E","E","E","E","E") moves. Then the expected answer is "Finish".

  • Custom User Avatar

    Could you be more specific? If test cases were wrong, there would be many issues open, but there aren't.

    What language are you using? Which input fails? And what do you think it should return?

  • Custom User Avatar

    So many wrong test cases, they made me feel so annoyed when I had to check again so many times and found that it is the problem of test cases.

  • Custom User Avatar

    the test case is wrong, I tried by my hand and found it wrong