Topic: Greedy Algorithm Problem / Level: intermediate

Problem: Given an array of job deadlines and profits, maximize the total profit by scheduling the jobs optimally.

Run the code to see the output here...