Algorithm · Google · Medium
Problem (Partial and generalized) A system contains n features. Some features rely on other features: before a feature can be enabled, every prerequisite feature must already be enabled. You are given: n features, identified by IDs or labels dependency relationships (for example, a directed relation A -> B indicates that A must be enabled before B may be enabled) an ordered list of requests (such as attempting to enable feature X or asking which features are enabled or…
Checking your access…