Cheapest Flights Within K Stops — Shortest Paths & MST

Find the cheapest one-way fare between two cities when the trip may use only a capped number of layovers, or say no trip fits.

Shortest Paths & MST · Hard

More in Shortest Paths & MST

All algorithm problems