Loading...
The DAG Executor
A hard Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- hard
- Seniority
- staff
Problem
The team needs a lightweight executor that can run a graph of data tasks in the right order, feeding each task's output into the tasks that depend on it. Build a function that takes a dictionary of task definitions with functions and dependencies, executes them, and returns all outputs.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.