Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
332. Reconstruct Itinerary
Standard
With Cycle
Small
Custom
tickets
=
[["MUC","LHR"],["JFK","MUC"],["SFO","SJC"],["LHR","SFO"]]
JFK
LHR
MUC
SFO
SJC
Unvisited
Current
In Result
Unused
Using
Step:
Start: Reconstruct itinerary from JFK using all tickets
Variable
Value
result
[]
Depth
Function Call
1
findItinerary()
0 / 30
Standard
With Cycle
Small
Custom
tickets
=
[["MUC","LHR"],["JFK","MUC"],["SFO","SJC"],["LHR","SFO"]]
0 / 30
JFK
LHR
MUC
SFO
SJC
Unvisited
Current
In Result
Unused
Using
Step:
Start: Reconstruct itinerary from JFK using all tickets
Visualization
Variables