Problem 3905 · Medium
Spread simultaneous BFS waves, resolve competing colors by maximum, and inspect arrival times in the grid.
Open the interactive visualisation