Find a Canonical Shortest Round Trip Through Flights

Quick Overview

Find a directed flight route that leaves a starting airport and returns in the fewest hops, using a canonical tie-break among equal routes. The problem examines graph reachability, shortest-cycle reasoning, lexicographic ordering, duplicate edges, self-loops, impossible cases, and adjacency-processing cost.

Find a Canonical Shortest Round Trip Through Flights

Company: Expedia

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

Overview: Find a directed flight route that leaves a starting airport and returns in the fewest hops, using a canonical tie-break among equal routes. The problem examines graph reachability, shortest-cycle reasoning, lexicographic ordering, duplicate edges, self-loops, impossible cases, and adjacency-processing cost.

|Home/Coding & Algorithms/Expedia
Expedia logo
Expedia
Jul 16, 2026
mediumSoftware EngineerOnsiteCoding & Algorithms
2
0
Loading...

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...