Ad
  • Custom User Avatar

    Your solution has a high time complexity. If you don't know what that is, now would be a good time to find out, since you're 4kyu.

  • Default User Avatar

    PEP 8: do not assign a lambda expression, use a def

  • Default User Avatar

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

  • Default User Avatar

    My comment was related with the new comment above... I've was timed out and I could'nt achieve the challenge.

  • Default User Avatar

    Hi. Thanks very much for your response.

    Yep, clearly I'm timing out on the long strings. I guess I need to keep working on optimizing my code then!

    Cheers :)

  • Custom User Avatar

    (for JS): There's 10 fixed tests, 50 short string tests, and 10 long string tests (70 total), so you're probably timing out at long strings =/

    For reference, average solution takes about 9-10s.

  • Default User Avatar

    Hi guys.

    How many tests are there? I am getting '60 passed, 0 failed, Exit code 1' (in 30ms), which relates to the 12000ms timeout. But are all the tests not completed already?

    I'm not sure what is timing out.

    Thanks!

  • Default User Avatar

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

  • Default User Avatar

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