Find Round-Trip Flight Itineraries

Find Round-Trip Flight Itineraries

Given a list of flights and an origin airport, each flight is a directed edge [from, to] meaning travel is available from from to to.

Return every round-t...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: