What should the dry run track?

Practice this question from Flood Fill - Boundary DFS Pattern Practice Quiz, with options and an explanation.

Question

What should the dry run track?

Option A — Correct answer

Track old color, recolored cells, and boundary stops.

Option B

Only the final answer, not the traversal state

Option C

The alphabetical order of node labels

Option D

The longest word in the input

Explanation

Track old color, recolored cells, and boundary stops.

Flood Fill - Boundary DFS Pattern Practice Quiz

All questions · Previous question · Next question

Open on QuizMaker