Ad
  • Custom User Avatar
  • Custom User Avatar

    MY POOR WEBBROWSER !!

    Do not show 1 000 it-headers.

    Unrelated, do not rely on random tests only ( these issues may not be unique to this translation ).

  • Custom User Avatar

    The general rule of thumb (at least on Codewars) is to not mutate the input unless it's explicitly instructed to do so.

  • Custom User Avatar

    @yuskivpm -- This is happening because your solution is mutating the input. The final tests ensure this isn't a problem, but the sample tests do not.

  • Custom User Avatar

    I do not have the "pos" variable in the code, so the problem is definitely not with my code))

    I am just nitpicking and being totally unhelpful, but it still could be a symptom of a problem with your code. pos could be the answer returned by your solution, which is expected to be iterable, but it happens to be not.