Sponsored
Use these hints if you're stuck. Try solving on your own first.
What is the earliest time a course can be taken?
How would you solve the problem if all courses take equal time?
How would you generalize this approach?
Solve with full IDE support and test cases