package
0.0.0-20241220224003-b7cf03a90b2b
Repository: https://github.com/szhou12/leetcode-go.git
Documentation: pkg.go.dev

# README

1020. Number of Enclaves

Solution idea

思路与130. Surrounded Regions一致

DFS/BFS

用DFS或者BFS找贴着边界的 1区域

Time complexity = O(row * col)