Back to Leetcode

Readme

Greedy/2257.Count-Unguarded-Cells-in-the-Grid/Readme.md

latest186 B
Original Source

2257.Count-Unguarded-Cells-in-the-Grid

从每个guard往四个方向扫,直至遇到wall或者另一个guard。最后统计整个矩阵里被没有被guard扫过的格子数目。