Netflix logoNetflix
Coding·60 minMembers

Reconstruct Itinerary

Members only

Order all tickets into one itinerary starting at JFK, using every ticket exactly once and choosing the lexicographically smallest path (Hierholzer / Eulerian path).

SWE
graph
dfs
backtracking
hard
Frequency
Single report
Last asked
2026-01-09
Stage
phone-screen · onsite-coding

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...