Quantcast
Channel: March 2015 – Program Creek
Viewing all articles
Browse latest Browse all 6

LeetCode – Reconstruct Itinerary (Java)

$
0
0
Given a list of airline tickets represented by pairs of departure and arrival airports [from, to], reconstruct the itinerary in order. All of the tickets belong to a man who departs from JFK. Thus, the itinerary must begin with JFK. Analysis This is an application of Hierholzer’s algorithm to find a Eulerian path. PriorityQueue should ... Read more

Viewing all articles
Browse latest Browse all 6

Trending Articles