MathWorks Interview Question

How would you detect cycles in a directed acyclic graph ?

Interview Answer

Anonymous

Jan 21, 2017

Used DFS and check if next node is on the current visited path.