← Questions
Detect and break cycles in pod dependencies
0
I was asked this
No reports yet. Sign in to say where you were asked it.
You have many pods, and a pod may depend on other pods.
- Dependencies are directed. Report whether they contain a cycle, much like checking whether a course schedule can be finished.
- Now treat each dependency as an undirected edge. Report whether there is a cycle, and if there is, return one edge whose removal breaks it.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding
