Back to Question
Reconstruct Itinerary
Question Explain
Given a list of flight tickets, reconstruct the itinerary in order. The itinerary must begin with 'JFK'. If there are multiple valid itineraries, you should return the one that has the smallest lexical order. Use DFS and sorting.
Start Trying This Question Simulation
Click "Start Speaking" and answer the question naturally.