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.length end_time.length profit.length
start_time[i] end_time[i]
profit[i]
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.length end_time.length profit.length
start_time[i] end_time[i]
profit[i]