You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given n jobs, each job has a deadline and a profit associated with it. The goal is to schedule the jobs in such a way that the total profit is maximized while ensuring that each job is completed by its deadline. A job can only be scheduled if there is a free time slot available before its deadline.
Input
The first line contains an integer n, the number of jobs.
The next n lines each contain:
A character representing the job ID (e.g., 'A', 'B', 'C', etc.).
An integer representing the deadline for the job.
An integer representing the profit for the job.
Output
Print the sequence of job IDs that can be scheduled for maximum profit.
Record
I agree to follow this project's Code of Conduct
I want to work on this issue
I'm willing to provide further clarification or assistance if needed.
Full Name
Shuvojit Samanta
Participant Role
GSSOC
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Feature Description
Idea Description
Given n jobs, each job has a deadline and a profit associated with it. The goal is to schedule the jobs in such a way that the total profit is maximized while ensuring that each job is completed by its deadline. A job can only be scheduled if there is a free time slot available before its deadline.
Input
The first line contains an integer n, the number of jobs.
The next n lines each contain:
A character representing the job ID (e.g., 'A', 'B', 'C', etc.).
An integer representing the deadline for the job.
An integer representing the profit for the job.
Output
Print the sequence of job IDs that can be scheduled for maximum profit.
Record
Full Name
Shuvojit Samanta
Participant Role
GSSOC
The text was updated successfully, but these errors were encountered: