Question
Which statement about Topological Sort is the strongest interview answer?
- Topological Sort is mostly a naming style choice and has little effect on runtime or design.
- Topological Sort exists mainly to reduce the number of Java files in a project.
- Topological sort produces an order where every directed edge goes from an earlier node to a later node.
- Topological Sort matters only for frontend frameworks, not for core Java applications.
Hint
Start with the core rule behind Topological Sort.
Answer and rationale
Correct answer: C. Topological sort produces an order where every directed edge goes from an earlier node to a later node.
Topological sort produces an order where every directed edge goes from an earlier node to a later node. This is the base concept interviewers commonly test first.
Track: Java