Ad
  • Custom User Avatar

    go for it

  • Custom User Avatar

    Definitely want to create translation.

  • Custom User Avatar

    I am sorry but I do not understand, what exactly is your suggestion?

    You created a translation and want to have it approved?
    Or maybe you want to create a translation?

  • Custom User Avatar

    ;Translations?

  • Custom User Avatar
  • Custom User Avatar
  • Custom User Avatar

    specifically the reference solution

    it wouldn't be so bad if tests gave false negatives, but they give false positives .. :O

  • Custom User Avatar

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

  • Custom User Avatar

    Houston, we have a problem...

    My solution in Python times out but the same one in JS passes all the tests in 3s.

  • Custom User Avatar

    Consider what you want in terms of performance. Then test for correct Big-O time complexity instead of having compliant solutions take 11 seconds. Succeeding should take on the order of 1 second for compliant solutions, while uncompliant solutions should time out consistently.

    Please read the chapter on performance testing in the documentation carefully. Get help if you have problems understanding or implementing performance requirements. Beware of requiring micro-optimisations!

    According to the below issue, Python has this problem; JS has it as well. The example solution takes 6 seconds, both submitted solutions take 11 second. This is indicative of too many not large enough tests, though there is something to be said for not too few tests.

  • Custom User Avatar

    Python tests are not well balanced - my solution passes them in 9.5-10 sec but still times out once in 10 or so attempts.

    Also, why on earth does testing take so much time? In general case, a valid solution shouldn't almost time out just to pass the tests, even if there're performance requirements.

  • Custom User Avatar

    It looks fixed, thanks.

    If it were me, I wouldn't trust the reference solution and just provide everything with a ( deep! ) copy of the input, but as far as I can tell the reference solution actually does it right.

  • Custom User Avatar

    This should be fixed now, can you check?

  • Custom User Avatar

    ( JS )

    check is used in the wrong way in the test suite. Also, it has undeclared variables and solver can modify the inputs of the random tests.

  • Custom User Avatar

    Now you can get a bonus point if you solve the sequel as well. Thank you for the good idea :)

  • Loading more items...