What is the main signal for Tree Traversal Templates?
Practice this question from Quiz: Cheatsheet: Tree Traversal Templates, with options and an explanation.
Question
What is the main signal for Tree Traversal Templates?
Option A — Correct answer
You need fast syntax or template recall.
Option B
The input has no constraints.
Option C
The sample output is small.
Option D
The question uses only one variable.
Explanation
Pattern choice starts from constraints and invariant.