0630. Course Schedule III
https://leetcode.com/problems/course-schedule-iii
Description
There are n
different online courses numbered from 1
to n
. You are given an array courses
where courses[i] = [durationi, lastDayi]
indicate that the ith
course should be taken continuously for durationi
days and must be finished before or on lastDayi
.
You will start on the 1st
day and you cannot take two or more courses simultaneously.
Return the maximum number of courses that you can take.
Example 1:
Example 2:
Example 3:
Constraints:
1 <= courses.length <= 104
1 <= durationi, lastDayi <= 104
ac
Last updated