← Questions

Deterministic task execution order

0
GoogleCodingLast asked Jun 2026

Given tasks and their dependencies, return an order to run them that respects every dependency and comes out the same every time for the same input, by a fixed rule for breaking ties between tasks that are ready together.

Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding