Which optimized pattern solves this lesson cleanly?
Practice this question from Course Schedule - Topological Sort Pattern Practice Quiz, with options and an explanation.
Question
Which optimized pattern solves this lesson cleanly?
Option A — Correct answer
Topological sort with zero-indegree BFS.
Option B
Nested loops without visited state
Option C
Two pointers on a sorted array
Option D
Character frequency counting only
Explanation
Topological sort with zero-indegree BFS.