Ad
  • Custom User Avatar

    You should say in the instructions for golang that the input array cannot be directly modified.

  • Custom User Avatar

    The input is not supposed to be directly modified, it doesn't mention that in the instructions though.

  • Custom User Avatar

    I am coding in golang and I pass every test case other than the "Input Mutation Test". I don't understand what this test is looking for/doing? The instructions don't say anything about this test case?
    Here is what the console spits out:
    Input mutation test
    Solution changed input
    Expected
    <[]int | len:7, cap:7>: [1, 1, 1, 1, 1, 1, 1]
    to equal
    <[]int | len:7, cap:7>: [1, 1, 2, 2, 2, 1, 1]

  • Custom User Avatar

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