Ad
  • Default User Avatar

    if X[i] > X[j] then X[i] = X[i] - X[j]

    (6, 9, 9 - 9) = (6, 9, 0) step can't be done.

  • Default User Avatar

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

  • Default User Avatar

    From the description I understood the task to be removing adjacent opposite pairs in a loop from the list until none remained to remove. But one of the python tests fails with "['SOUTH', 'WEST', 'WEST'] should equal ['WEST']". That seems to make no sense, because SOUTH and WEST are not opposites!