Plan a Route Using Every Flight Ticket

Asked at Netflix · Coding Questions · Difficulty: Hard · Last asked Jan 9, 2026

A traveller holds a stack of one-way flight tickets and wants to fly all of them in one continuous trip. Each ticket goes from one airport to another. Given the tickets and the airport where the trip starts, build the trip as a list of airports, using every ticket exactly once.

Loading the problem…