For Graph Traversal, Cycle Detection and Topological Sort, you should dry-run the state before coding.
Practice this question from Quiz: Graph Traversal, Cycle Detection and Topological Sort, with options and an explanation.
Question
For Graph Traversal, Cycle Detection and Topological Sort, you should dry-run the state before coding.
Option A — Correct answer
True
Option B
False
Explanation
A dry run catches boundary mistakes early.