LeetCode 286: Walls And Gates — Step-by-Step Visual Trace

📰 Dev.to · tracelit

Fill each empty room with the distance to its nearest gate, where rooms are represented by a 2D grid with gates (0), walls (-1), and empty rooms (INF).

Published 9 Apr 2026
Read full article → ← Back to Reads