Let\'s say that there is a political party campaigning from city A to city Z, with all the rest of the cities fall between them in a non-linear order.
I have the dist