Ad
  • Default User Avatar

    you are mutating the input array, while the tests re-used the same arrays for several tests. I fixed the issue, but in general it's considered bad practice to mutate your arguments for no good reasons; and on Codewars it might confuse the tests suite for some old katas