Ad
  • Custom User Avatar

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

  • Custom User Avatar

    I'm not sure I understand your question @AbdulSalphan but there are 2 things for you to consider:

    1. the "maximum number value for n" in the random testcases - this is something like 10,000-20,000 depending on language (15,000 for Python)

    2. the number/amount of random tests performed - again, with Python this is currently = 110

    So even if your solution is taking, say, 1 second for a single instance of a test with n = 20,000, you need to understand that may you have to multiply that number by, at worst, 110 to get the approximate total test run-time, since that is how many random tests will be performed.

  • Custom User Avatar

    in php: 100 random tests up to 10000