Two City Scheduling

Try to solve the Two City Scheduling problem.

Statement

A recruiter plans to hire n\textbf{\textit{n}} people and conducts their interviews at two different locations of the company. He evaluates the cost of inviting candidates to both these locations. The plan is to invite 50% at one location, and the rest at the other location, keeping costs to a minimum.

We are given an array, costs, where costs[i]= ...

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy