1.You run BFS from one cell of a grid where every move is one step. The first time the search reaches a cell, what do you know?
2.You mark cells as seen when you pop them, not when you queue them, and you don't skip repeats. On an open 10 by 10 grid searched from a corner, how many entries come off the queue?
3.Fifty fires on an open 200 by 200 grid. You want the minute each tree catches. What does one search from every fire at once cost, against one search per fire?
4.A one-row forest
F...., a fire on the left and four trees, one burning neighbor is enough. You update the grid in place, scanning left to right. What does your code report?5.Your level-by-level loop adds a minute after every pass, including the pass that finds nothing new. What does it return for a row of five trees lit at one end?
6.In the forest
F.F / ... / F.., a tree needs two burning neighbors to catch. The bottom-right tree is two steps from the nearest fire. When does it catch?