Topological Sort - Parallel Courses (Minimum Semesters)
Given the following partial state of the indegree array during BFS topological sort for
n=4 courses: [0, 0, 1, 0, 1] (1-based indexing), and the queue contains courses [1, 4], which prerequisite relation is missing from the input?