Two-Core Process Assignment
Problem Overview
- Assign processes to two cores so the maximum total time on any core is minimized.
- Input: array of integers time representing each process duration; Output: [sum_core1, sum_core2] total times per core.
- Constraint: exactly two cores; all processes must be scheduled while minimizing the peak core load.
- Context: CPU scheduling/load balancing; a common coding interview problem and interview question.
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:
