Implemented the Job Sequencing Algorithm using a greedy approach to maximize profit by scheduling jobs within their respective deadlines. The jobSequencing() function arranges jobs based on the highest profit within the available time slots. Example input and expected output have been included in comments for clarity.
Description of Change
Closes #2881
Implemented the Job Sequencing Algorithm using a greedy approach to maximize profit by scheduling jobs within their respective deadlines. The
jobSequencing()
function arranges jobs based on the highest profit within the available time slots. Example input and expected output have been included in comments for clarity.Checklist
Notes: This PR adds the Job Sequencing Algorithm, which is an essential greedy algorithm for maximizing profit from job scheduling.