Solution: Maximum Profit in Job Scheduling
Let's solve the Maximum Profit in Job Scheduling problem using the Dynamic Programming pattern.
Statement
Suppose there are start_time, end_time, and profit, calculate the maximum profit that can be obtained.
Note: Selecting a job that finishes at time
means you can pick the next job that starts at the same time or later.
Constraints:
start_time.lengthend_time.lengthprofit.lengthstart_time[i]end_time[i]...