Reconstruct Itinerary

Reconstruct Itinerary

You are given airline tickets, where each ticket is a directed edge [from, to]. Every itinerary must start at "JFK" and must use every ticket exactly once.

Return th...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: