AlgoMaster Logo

Walls and Gates

rooms=[[2147483647,-1,0,2147483647],[2147483647,2147483647,2147483647,-1],[2147483647,-1,2147483647,-1],[0,-1,2147483647,2147483647]]
0 / 190
algomaster.io
Step:Start: Fill each empty room by searching outward for its nearest gate