Services must be deployed after the services they depend on. Given deps mapping each service to the
list of services it depends on, return a deployment order. When several services are ready at the same
time, deploy them in alphabetical order (this makes the answer unique). Services that only appear as
dependencies are included too.
If the dependencies contain a cycle, return None.
Implement deploy_order. Input: deps: dict[str, list[str]]. Returns: list[str] | None.
def deploy_order(deps: dict[str, list[str]]):
return sorted(deps)
Run executes the public tests. Submit grades against public and hidden tests.
Services must be deployed after the services they depend on. Given deps mapping each service to the
list of services it depends on, return a deployment order. When several services are ready at the same
time, deploy them in alphabetical order (this makes the answer unique). Services that only appear as
dependencies are included too.
If the dependencies contain a cycle, return None.
Implement deploy_order. Input: deps: dict[str, list[str]]. Returns: list[str] | None.
def deploy_order(deps: dict[str, list[str]]):
return sorted(deps)
Run executes the public tests. Submit grades against public and hidden tests.