I don't know where I am going, but I am already on my way!
Time is hurried, although I have never met, but I met Yusi, it is really a great fate, thank you for your visit!
Topic : give you a tour circuit diagram, the circuit diagram of an array of travel routes paths, where paths[i] = [cityAi, cityBi]representation from the line will cityAigo directly cityBi. Please find out the destination of this trip, that is, a city that does not have any routes to other cities. The title data guarantees that the route map will form a route without loops, so there will only be one travel terminal.
Algorithm description: Find the starting point and the end point respectively, and judge whether the end point appears in the starting point, if not, return to the end point.
Algorithm description: Using the set nature, subtract the set of starting point cities from the set of all cities, and the remaining cities are the ending cities.