Reconstruct Itinerary

Problem overview from a real Pinterest interview:

You are given a list of airline tickets where tickets[i] = [fromi, toi] represent the departure and the arrival airports of one flight. Reconstruct the itinerary in order and return it.

Check more interview questions and experiences about Pinterest

Please log in to view interview details