11/32
Part 3 of 7 · Fewest stepsLearn and do

BFS finds the fewest steps when every step costs the same

When every step costs one, the first count BFS gives a cell is its fewest steps

Here is the queue of the yard search after every pop, with each cell's level next to it:

Predict

Watch the queue during the search on YARD. How many different levels can sit in it at once?

Pick an answer above to see the rest
Predict

MAZE is ["..#...", "..#.#.", "....#."]. How many steps from (0,0) to (0,3), just past the wall in column 2?

Pick an answer above to see the rest