Ad
  • Default User Avatar

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

  • Default User Avatar

    Yes, I realized my mistake, thank you very much. It was necessary to learn more about the peculiarities of the language. 100 iterations, it's so joke, forgot to rewrite)

  • Custom User Avatar

    What language, what error? Impossible to help you with so little information.
    There is no error, your code mutates the original list. Read about it.
    Some solutions present in Solutions section aren't invalidated (don't know why) but were valid when input mutation wasn't tested.

  • Default User Avatar

    this kata has a error and I saw solutions, I went back to try agin error

  • Custom User Avatar

    Read about arrays and mutation, you are indeed mutating it. You're not creating a copy, only another reference to the same array.
    Try this kata
    And why did you set the loop limit to 100 iterations?

  • Default User Avatar

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