Problems / Graphs / Course Schedule
#87 Medium Time O(V+E) Space O(V+E) Animated

Course Schedule

Determine if you can finish all courses (cycle detection).

LeetCode ↗
Approach: DFS (Cycle Detection)
Click play to start
Step 0 / 0
Press play to start the visualization.

Steps