TweakCode
Graphs lessons
Loading editor…
Test casesRun to compare output
Input
numCourses = 2, prerequisites = [[1,0]]
Output
—
Expected
[0,1]

More practice

Same technique, different problems. Try them without the walkthrough.