Ad
  • 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

    But, my code executes fast for upto n = 20000. The number of tests are adding to the time?
    They don't get executed concurrently?

  • Custom User Avatar

    in php: 100 random tests up to 10000

  • Custom User Avatar

    Does anyone know whats the maximum number value for n in the random testcases? My code works on time for atleast upto n = 20000.

  • Custom User Avatar

    I'm doing this with PHP. Everything fell into places except that my null and boolean values are considered zeroes. Probably a datatype error from my side. Any reference from where I can learn to solve this?

  • Custom User Avatar

    Did you use 'return' in the code?

  • Custom User Avatar

    I'm getting the same issue in PHP. What's the solution for the missing datatypes?

  • Custom User Avatar

    It has to be consecutive strings.