Approach hintTry it first, then revealHide
With the coordinates sorted, the cheapest letter goes to an adjacent city and the most expensive to one of the two end cities. The first and last cities have only one neighbour.
With the coordinates sorted, the cheapest letter goes to an adjacent city and the most expensive to one of the two end cities. The first and last cities have only one neighbour.