Cheapest Round-Trip Flight with Departure Before Return
CodingOnsiteSoftware EngineerReported Aug, 2026
Company question banks are included with the Insider plan.
You are given two arrays of equal length, outbound and inbound. On day i, the outbound ticket costs outbound[i] and the return ticket costs inbound[i]. Choose a departure day i and a...