Ad
  • Custom User Avatar

    The line const arr = array does not create a copy of the array, it simply points to it, so both variables refer to the same thing. I tried creating an actual copy and then your code passed.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution