Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Leetcode 2050. Parallel Courses III
Given a DAG of course prerequisites where each course has a duration and any number of courses can run in parallel once prerequisites are satisfied, compute the minimum time to finish all courses. This is the classic longest-path/critical-path problem on a node-weighted DAG — compute each course's earliest completion time as max(completion times of prerequisites) + its duration.
Asked at:
Meta
Salesforce
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
Late May, 2025
Salesforce
Staff
Mid February, 2025
Meta
Mid-level
Late November, 2024
Junior
Parallel courses with dependencies (similar to LeetCode 'Parallel Courses III')
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.