Given tasks with durations and dependencies, return the total time to complete all tasks and the order they complete in.
Unlock detailed company stats for this questionUpgrade
You are given two 2D lists. taskList: each row contains [task_id, duration]. dependencyList: each row contains [task_a, task_b], meaning task_a must be completed before task_b can start. Return the total duration to complete all tasks and the order in which tasks will be completed.
Community answers
No answers contributed by the community yet.
Related questions
Given tasks with a runAt time and a priority, return their execution order.Implement an order book with three functions: insert an order, delete an order, and return the total volume resting at a given price level.Find the minimum time to finish tasks with dependencies and per-type cooldown.Related courses

Course

Course
Course
