Cheapest flights within K stops

0
Remix

Given flights as (from, to, price), a source, a destination and an integer k, return the cheapest price from the source to the destination using at most k stops, or -1 if there is no such route.

StripeUberTechnical phone screenLast asked Feb 2026
No answer yet. Write the first one; the best answer gets endorsed.