Concept Flow - Job Scheduling with Deadlines
Start with list of jobs
Sort jobs by profit descending
Initialize schedule slots as empty
For each job in sorted list
Find latest free slot before job deadline
If slot found, assign job to slot
Repeat for all jobs
Output scheduled jobs and total profit
Sort jobs by profit, then assign each to the latest free slot before its deadline to maximize total profit.