Cheapest round-trip flight from two price lists

0
Remix

departure[i] is the price of flying out on day i and arrival[j] the price of flying back on day j. Return the cheapest total for a trip that returns after it departs, in one pass.

MetaCodingLast asked Jul 2026
No answer yet. Write the first one; the best answer gets endorsed.