更新图片链接

This commit is contained in:
kama
2025-05-19 17:11:04 +08:00
parent b489cb69b5
commit ce6e658d14
315 changed files with 2499 additions and 1729 deletions

View File

@@ -35,12 +35,12 @@
提示信息
![](https://file.kamacoder.com/pics/20240522154055.png)
![](https://file1.kamacoder.com/i/algo/20240522154055.png)
对于上面的案例,有两个位置可将 0 变成 1使得岛屿的面积最大即 6。
![](https://file.kamacoder.com/pics/20240522154110.png)
![](https://file1.kamacoder.com/i/algo/20240522154110.png)
数据范围:
@@ -70,11 +70,11 @@
拿如下地图的岛屿情况来举例: 1为陆地
![](https://file.kamacoder.com/pics/20220829104834.png)
![](https://file1.kamacoder.com/i/algo/20220829104834.png)
第一步,则遍历地图,并将岛屿的编号和面积都统计好,过程如图所示:
![](https://file.kamacoder.com/pics/20220829105644.png)
![](https://file1.kamacoder.com/i/algo/20220829105644.png)
本过程代码如下:
@@ -121,7 +121,7 @@ int largestIsland(vector<vector<int>>& grid) {
第二步过程如图所示:
![](https://file.kamacoder.com/pics/20220829105249.png)
![](https://file1.kamacoder.com/i/algo/20220829105249.png)
也就是遍历每一个0的方格并统计其相邻岛屿面积最后取一个最大值。
@@ -663,3 +663,4 @@ const dfs = (graph, visited, x, y, mark) => {
### C
<div align="center"><a href="https://www.nowcoder.com/link/wx_sqlcarl199" target="_blank"><img src="https://code-thinking-1253855093.file.myqcloud.com/pics/20220416223343.png" width="1000"/></a></div>