Topological Sort - Course Schedule II (Topological Order)
Consider two approaches to solve Course Schedule II: (1) DFS-based topological sort with cycle detection, and (2) Kahn's Algorithm (BFS with in-degree). When is the DFS approach preferable over Kahn's Algorithm?
