Ad
  • Custom User Avatar

    Hi,

    Your code just isn't efficient enough. I checked a bunch of solutions and they still pass the tests without problems in java (some in less than 3s).

  • Custom User Avatar

    Java, b_middleTests
    Log
    1600
    STDERR
    Execution Timed Out (16000 ms)
    Why did my code time out?
    Our servers are configured to only allow a certain amount of time for your code to execute. In rare cases the server may be taking on too much work and simply wasn't able to run your code efficiently enough. Most of the time though this issue is caused by inefficient algorithms. If you see this error multiple times you should try to optimize your code further.

    And there is no way for optimissing the code even MORE

  • Custom User Avatar

    Writing your own minigame is always fun

  • Custom User Avatar

    Minimum would be the language you attempt, and what is the actual problem which you think is a bug in the kata.

  • Custom User Avatar

    Description in other languages has information about upper bound, but C++ misses this info.
    If I see correctly, max n is 1000.

  • Custom User Avatar

    What info should I provide?

  • Custom User Avatar

    Closing as per not enough info to address the issue.

  • Custom User Avatar

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

  • Custom User Avatar

    если платят за строчки то да