← All problems
Medium · Graphs

Walls And Gates

Fill empty rooms with distances to their nearest reachable gates.

Full problem and submission ↗
main.js

Console

Ready