Ad
  • Default User Avatar

    OK, I have changed the test cases. I should have explicitly stated in the description that you should reverse the original array. Oh well. Your solution should pass now.

  • Default User Avatar

    It is due to you emptying out the original array. There is a note on the description. I will have a look soon.