Skip to main content
All Questions

Find the minimum time to reach a destination using a given set of flights.

Unlock detailed company stats for this questionUpgrade

Based on Dijkstra's algorithm: given a set of flights with arrival/departure times, sources and destinations, find the minimum time in which you can reach the destination from the source.

First question: check whether the destination can be reached by picking a given series of flights, and if so find the minimum time.

Expect follow-ups like

  • First part: can you reach the destination by picking a given series of flights; if yes, find the minimum time.

Community answers

No answers contributed by the community yet.

Related courses

Course

Software Engineering Interview Prep

Land your dream software engineering role at Google, Amazon, Microsoft, Meta, Apple, and other top companies. Learn from mock interviews, frameworks, and advice from senior candidates—practice data structures, algorithms, system design, people management, behavioral interviews, and more.

Course

System Design Interviews

Learn how to answer the latest system design questions across product, infrastructure, and AI domains. Features in-depth video examples, written breakdowns, and helpful reference patterns. Watch senior engineers and managers answer these questions in mock interview videos.