There are m jobs that need to be scheduled on n processors. A schedule is considered balanced if the difference in the number of jobs between any two neighboring processors does not exceed 1.
The $k^{th}$ processor is the most efficient, so it should be assigned the maximum number of jobs possible while keeping the schedule balanced. Determine the maximum number of jobs that can be assigned to the $k^{th}$ processor under these conditions.
Note: Every processor must have at least one job.
Expert in Data Structures & Algorithms. Building tools to help developers crack FAANG interviews.