//
pkg.gl
Category
github.com/szhou12/leetcode-go
leetcode
1020-Number-of-Enclaves
package
0.0.0-20241220224003-b7cf03a90b2b
Repository:
https://github.com/szhou12/leetcode-go.git
Documentation:
pkg.go.dev
Overview
Dependencies
0
Dependents
0
#
README
1020. Number of Enclaves
Solution idea
思路与
130. Surrounded Regions
一致
DFS/BFS
用DFS或者BFS找贴着边界的 1区域
Time complexity = O(row * col)