Schedule Dependent Tasks
Schedule Dependent Tasks
There are n tasks numbered 0 to n-1 and m dependencies. Each dependency a b means task a must be completed before task b.
Return a valid execution order. If...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
