0463. 岛屿的周长 #231
0463. 岛屿的周长
#231
Replies: 1 comment
-
求指教,这里空间复杂度是 O(m + n) 吧 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
0463. 岛屿的周长
--- 0463. 岛屿的周长 标签:深度优先搜索、广度优先搜索、数组、矩阵 难度:简单 题目链接 0463. 岛屿的周长 - 力扣 题目大意 描述:给定一个 row * col 大小的二维网格地图 grid ,其中:grid[i][j] = 1 表示陆地,grid[i][j] = 0 表示水域。 网格中的格子水平和垂直方向相连(对角线方向不相连)。整...
https://algo.itcharge.cn/solutions/0400-0499/island-perimeter/
Beta Was this translation helpful? Give feedback.
All reactions