Problem 3905 · Medium

Multi Source Flood Fill

Spread simultaneous BFS waves, resolve competing colors by maximum, and inspect arrival times in the grid.

Open the interactive visualisation