Ad
  • Custom User Avatar

    In this case, it won't. Since the inputs are within a limited range! Another case for large inputs tho

  • Custom User Avatar

    Already mentioned in description

  • Custom User Avatar

    fixed

  • Default User Avatar

    Indeed :)
    And I would even add:
    stage 10 "Jeez! It was actually SO obvious after all!.. How could I not see it at first? :/"
    I had initially gone on a much more "far-fetched" path / more "complex" behaviour^^

  • Custom User Avatar
  • Default User Avatar

    that was a fun challange thanks :D

  • Default User Avatar

    @GiacomoSorbi thank you for fixing it have been eagerly trying to test my solution :P

    (spoiler alert) it timed out what a suprise... Though it wasn't hard to fix.
    Sometimes I'm a bit to naive with solutions honesly oh well.

  • Custom User Avatar

    Hi Voile,

    It seems you totally messed up the python version... x) please correct it (see above)

  • Custom User Avatar

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

  • Custom User Avatar

    hi,

    Your c++ translation has troubles in the random tests (see above). You should check the crystal one too, so.

    cheers

  • Custom User Avatar

    issue confirmed in c++:

    scramble("tjuofkoiyufmdgfhn", "fodjhfuyuf");
    

    expects false while it should be true

  • Default User Avatar

    Nope no timeout errors or any other critical error, just the

    Expected: false
    Actual: 1

    my time before it stops is well within the time out region 2738ms so that should be fine.

  • Custom User Avatar

    My bad then. You're right. If those are the test values, it should indeed expect true.
    What's the error message you get? I've tried a not efficient enough code and it shows a log of a list of tests where the last one should return true, but the error below shows this:

    Expected: false
    Actual: 1
     STDERR
    Execution Timed Out (12000 ms)
    

    So the message is confusing, the real error there is the timeout.

  • Default User Avatar

    The first string has 2u's and the secons string aks for 2 u's?
    tjUofkoiyUfmdgfhn -> fodjhfUyUf

  • Custom User Avatar

    Not an issue. Not enough u in the first string.

  • Loading more items...