Array
2257. Count Unguarded Cells in the Grid
Grid h×w with guards and walls. A guard "sees" cells in all four directions until blocked by a wall or another guard. Count the cells that are unguarded and unoccupied (not a wall, guard, or seen).…
Loading…