Code
The highlighted line runs next. The pill shows the live values in the running call.
Variables
The data structures the code is building
Airports and tickets
Each arrow is one ticket; numbers show the order used
Each ticket [from, to] is one flight. Starting at "JFK", use every ticket exactly once and return the itinerary. If several work, return the lexicographically smallest.
The highlighted line runs next. The pill shows the live values in the running call.
The data structures the code is building
Each arrow is one ticket; numbers show the order used
E = number of tickets, V = airports. The highlighted row is the solution being traced.
Keyboard: ← → step, Space play or pause. Up to 10 tickets and 7 airports, 3-letter codes, and the tickets must form a trip from JFK.