Find a valid execution order for tasks with dependencies.
Unlock detailed company stats for this questionUpgrade
You are given N tasks (labeled 0 to N-1) and a list of dependencies where dependencies[i] = [a, b] means task a must be completed before task b can start. Framed as Airflow task scheduling; the intended idea is topological sort to find the order of execution.
Format · Airbnb technical screen.
Community answers
No answers contributed by the community yet.
Related questions
Find a valid processing order for items with parent-child dependencies and deletion constraints.Given a DAG of dependencies, how do you order execution correctly?Return a valid startup order for microservices given their dependencies.Related courses

Course

Course
Course
