Getting 1 test case wrong
Code Link:-https://ide.geeksforgeeks.org/yENtU2mCkl
Course Schedule II Leetcode
@Bhawna
the cycle detection part is partially correct.
u need to call dfs from all unvisited node ( u r calling only from a single node)
@Bhawna
the cycle detection part is partially correct.
u need to call dfs from all unvisited node ( u r calling only from a single node)