LeetCode: https://leetcode.com/problems/course-schedule-ii/
Return the ordering of courses you should take to finish all courses. If impossible, return an empty array.
0
0
1
1
2
2
3
3
numCourses=4
prerequisites=Array(4)
graph=Array(4)
indeg=[0, 1, 1, 2]
Step 1 / 6
Step 1:
Build graph and indeg for prerequisites [[1,0],[2,0],[3,1],[3,2]].
Focus: select @ [0]
numCourses=4