Task Dependency Resolution (Topological Sort)

Asked at Vanta · Coding Questions · Difficulty: Medium · Last asked Feb 28, 2026

Given a set of build/CI tasks each with a dependency list, return all tasks required to run a requested set, in a valid execution order with no duplicates — a topological sort dressed up in Vanta-product framing (build pipelines).

Loading the problem…