Ad
  • Custom User Avatar

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

  • Custom User Avatar

    If I understand well you passed the tests in "Your example test cases" but not when you "submit". It can be because there are a lot of tests in "submit" (120) but only 5 in "Your test cases" and then you have a "timing out". Either CW is a bit too busy or your code is too slow. I just tried and it took me 4000 milliseconds. Try again and tell me if you succeed or not.

  • Custom User Avatar

    Which language?

  • Custom User Avatar

    Good!

  • Custom User Avatar

    Can you please be more precise? Which language? What is the problem? Fixed tests or random tests? Are you timing out? Don't forget to mark as spoiler when you post code:-)