Ad
  • Default User Avatar

    Use a console.log statement to print the input arrays

  • Default User Avatar

    The harder and hardest test cases are returning an "Unspecified Assertion Error" in javascript. Upon close inspection, it seems like some of the array elements are not comma separated (no commas between elements) where there are supposed to be commas. Testing the cases in the browser console returns "Uncaught SyntaxError: missing ] after element list. note: [ opened at line 1, column 18

    Going through the array and adding the missing comma fixes the error. The harder tests are being executed in a combined time of 7ms, while the hardest are being executed in a combined time of 458ms.

  • Default User Avatar

    I'm getting the same error, execution times on the harder and hardest tests are 2ms, 5ms, 195ms and 257ms. Could this still be slow?