← Questions

Order feature activations by their dependencies

0
GoogleCodingLast asked Jan 2026

Features must be turned on in an order that respects their dependencies (a feature can only be activated after the features it depends on). Given the features and dependencies, return a valid activation order, or report that none exists because of a cycle.

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