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. Similar to LeetCode 1136, Parallel Courses.
Community answers
No answers contributed by the community yet.
Related questions
Implement an order book with three functions: insert an order, delete an order, and return the total volume resting at a given price level.Given an array of task durations (in minutes), return the pairs of tasks that can be completed within 60 minutes. For example, for [1, 43, 20, 59, 30, 30], return [[0, 3], [4, 5]].Related courses

Course

Course
Course
