You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempt 1: Use an adjacency list to store the prerequisites in the graph. Use dfs to search the cycle. Use a boolean[] to store the course that has no cycle.