Ad
  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    Mark your post as having spoiler content next time, please.

    About your code, the range is wrong and why are you using that filter for? Those things are what makes your code so slow.

  • Custom User Avatar

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

  • Custom User Avatar

    Either you're using recursion / looping infinitely, or your algorithm is very slow. I'd bet it's the first option, I'm passing JS tests in 2 secs with inefficient algorithm. Try to figure it out with sys-out printlns.

  • Custom User Avatar

    Hi,

    Basic tests passed, but I have random tests error:
    Execution Timed Out (16000 ms)

    How can I solve this??

  • Custom User Avatar

    too many random test, it makes no sense