Ad
  • Custom User Avatar

    I was having the same issue in python. As previsously suggested, I had to optomize my code to avoid the time out error.

  • Custom User Avatar

    Description:

    The tests contain some very huge arrays, so think about performance.

    So it is intended to block inferior solutions. You'll have to write a solution that is not inferior to pass the tests.

    Also, where did you learn this habit of "complaining about the problem set being wrong for my code's own problems"? Every OJ site will ignore you if you're doing this. The correct way of handling this is to post your code with spoilers, marked as question (not issue!) and asking for assistance. 99% of the time you'll find that it's actually your code that has problems ;-)

  • Custom User Avatar

    My code was fast enough. I'm unsure what the problem was, but both my original solution and an increasingly optimized version of it returned success when I tried submitting it a few hours later. It may be worth checking your tests to see if any might be excessive to the purpose they intend to serve. Thanks!

  • Custom User Avatar

    No, it's not. Your code isn't fast enough.

    The tests contain some very huge arrays, so think about performance.

    Also, check how many completions there are for Python:

    Python Completions 3287

  • Custom User Avatar

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