Ad
  • Custom User Avatar

    No, it is actually more confusing than that!

    The first time array.pop(0) is executed the array variable is still bound to the input argument.

    But after that, the array variable is rebound to a new list, and therefore no longer mutates the input argument.

    So, the input array is changed after the function, but only with its first row removed.

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    I have the same problem. Slx64, can you verify that your tests are correct for C++?

  • Custom User Avatar

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