06.17 · Problem
Two-City Interview Trip
This problem is part of solulu Pro
A company flies 2n candidates for interviews; exactly n go to city A and n go to city B. costs[i] = [a_i, b_i] is the price for candidate i to go to A or B. What is the minimum total travel cost?
Lifetime ₹2,000 ₹1,000 · Beta offer
Item 71 of 94 · updated 2026-10-12