Loading...

The Dependency Resolver

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
senior, staff

Problem

The pipeline orchestrator has tasks that depend on each other, and running them out of order causes silent data corruption. Write a function that takes a dependency graph and returns a safe execution order. If the dependencies form a cycle, raise an error.

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.