Traveling salesman problem: 2-opting

Sign in to test your solution.
def TSP2opt(points: list):