Back to problems

Package Dependency Installation & Build Order

Algorithm · Amazon · Medium

Package Installation Order Medium · Topics · Company Tags · Hints You are managing a software project composed of many packages. Each package may depend on other packages that must be installed beforehand. The dependency relationships are given as a directed graph: for each package, you have a list of the packages it directly depends on. Write a function findInstallOrder that accepts the dependency graph and the name of a target package, and returns a list of package names…

Checking your access…