Search
⌘K

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:

Salesforce

Meta

Google

Google

Snowflake


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Early January, 2026

Snowflake

Mid-level

Late May, 2025

Salesforce

Staff

Mid February, 2025

Meta

Mid-level

Comments

Your account is free and you can post anonymously if you choose.