Problem 2258 · Hard

Escape the Spreading Fire

Fire spreads one cell per minute through grass. Find the longest wait at the start that still lets the person reach the safehouse.

Open the interactive visualisation