Loading...
By continuing to use the platform, you accept the terms of the Privacy Policy and the use of cookies.
[
{ from: 'London', to: 'Moscow' },
{ from: 'NY', to: 'London' },
{ from: 'Moscow', to: 'SPb' },
...
]
From these tickets, we can build a single, continuous route.
There are no loops or repetitions in the route.
You need to write a program that returns these same ticket objects
in the order they appear in the route.
Run your code to see results.
Click the Run button above
[
{ from: 'London', to: 'Moscow' },
{ from: 'NY', to: 'London' },
{ from: 'Moscow', to: 'SPb' },
...
]
From these tickets, we can build a single, continuous route.
There are no loops or repetitions in the route.
You need to write a program that returns these same ticket objects
in the order they appear in the route.