Job Execution

Problem Overview

  • Compute the minimum number of operations to complete n parallel jobs when each operation runs one major job for x seconds and all others for y seconds (y < x).
  • Input: executionTime array, x, y; Output: integer minimum operations; Constraints: n≤1e5, times≤1e9, 1≤y<x≤1e9.
  • Domain: processor scheduling and parallel job execution with cumulative runtimes.
  • This coding interview problem from Mathworks interviews is a common 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: