Problem 286 · Medium

Walls and Gates

Fill grid with distance to gate.

Open the interactive visualisation