Get Minimum Cost
Get Minimum Cost is a Deshaw interviews coding interview problem. Given arrays time and cost for tasks, you have a paid server and a free server. The free server can run a task in 1 unit at zero cost only when the paid server is busy. Determine the minimum total cost to finish all tasks. A concise interview question on scheduling and costs.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Input Variables
Execution Result:
