
Follow Ghost Legs

Ghost leg is a well-known method used to get random results. This mechanism has the effect of changing the order in the list.
Examples:
assert follow_ghost_legs(3, [(1, 2), (2, 3), (1, 2)]) == [3, 2, 1] assert follow_ghost_legs(4, [(2, 3), (1, 2), (2, 3), (3, 4)]) == [3, 2, 4, 1] assert follow_ghost_legs(5, [(3, 4), (4, 5), (3, 4), (2, 3), (3, 4)]) == [1, 5, 4, 2, 3] assert follow_ghost_legs(6, [(1, 2), (2,...
You should be an authorized user in order to see the full description and start solving this mission.