Ad
  • Custom User Avatar

    The reason why its timing out is because of the time complexity of O(n^2). If you read the description it tells you that there will be some really long arrays. You should try another solution

  • Custom User Avatar

    I don't know what you mean, the error message is almost the same in javascript and PHP. The order of the values is the order of your function's arguments.

  • Custom User Avatar

    How what works?