Ad
  • Default User Avatar

    Passing test that run when you hit "test" button is just first step of validation of your code, when you hit "attempt" more complex (often random) test cases are run on your code.
    So most likely your code doesn't work well in some edge cases.

  • Default User Avatar

    I wonder how this solution passed the empty array test without throwing exception?