The Dependency Resolver
A medium Python mock interview question on DataDriven, with an AI interviewer who asks follow-up questions and a hire or no-hire decision at the end.
- Domain
- Python
- Difficulty
- medium
- Seniority
- L5
Interview Prompt
An on-call engineer restarting a pipeline holds a `tasks` map in which each task name lists the tasks that must finish before it can start. The scheduler launches in waves, each starting every task whose prerequisites are already done; return the full launch order.
Summary
Everything depends on everything.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write and run your Python against test cases
- Answer the interviewer's follow-up questions, then get a hire or no-hire decision