Topological Sort - Parallel Courses (Minimum Semesters)
What is the time complexity of the optimal BFS-based topological sort algorithm for the Parallel Courses problem, given
n courses and m prerequisite relations?