Expedia logoExpedia
CodingMembers

Round Trip from a Flight List

Members only

A tech-screen coding question on flight data: given a list of flights and a starting city, build an itinerary that gets you back to where you started, with a follow-up on making it shortest. The challenge is nailing the spec and choosing a traversal that does not strand you.

SWE
medium
graph
dfs
heap
shortest-path
Frequency
Single report
Last asked
—
Stage
tech-screen

Members get

  • Full problem statement
  • Known variants to clarify
  • 3 progressive hints
  • Step-by-step approach
  • Full solution with code
  • 4 common pitfalls
  • 5 talking points
  • 5 follow-up questions with answer directions
  • Preparation drills

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...