Ad
  • Custom User Avatar

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

  • Custom User Avatar

    I disagree with you but have no recourse.

    I've written 3 different solutions that pass the sample tests in under 6000ms. However every time they fail the submit.

    The function with "return 1" barely completes faster than the alotted timeout. I still recommend having less tests or a random set of tests to allow for other solutions and to help others learn.

  • Custom User Avatar

    My PowerShell completes the test cases fine. However, it times out (12000ms is the limit) when attempting to solve. I changed my script so it just returns a number, no script, no logic, to see how long it takes to attempt with no work. The solve fails (as it should) in just under 11000ms. I believe there are too many unit tests for PowerShell to be able to solve this before the server times out.