NeetCode #798LC-1029MediumGreedy
← Back to All Problems

#798 · #1029 · Two City Scheduling(两地调度)

📌 Problem Statement & Constraints

A company must send 2n people to two cities, n to each. costs[i] = [costA, costB] is the cost of sending person i to city A or city B. Return the minimum total cost. Constraints: 2 <= costs.length <= 100 and costs.length is even, 1 <= costs[i][0], costs[i][1] <= 1000.
🔒

Sign In to Unlock Full Solutions for All 973 Problems

Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!