Update 0200.岛屿数量.广搜版.md
This commit is contained in:
parent
5085e78e60
commit
e5d3d11885
|
|
@ -196,11 +196,8 @@ class Solution {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
<p align="center">
|
|
||||||
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
|
## 其他语言版本
|
||||||
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
|
|
||||||
</a>
|
|
||||||
```
|
|
||||||
### Python
|
### Python
|
||||||
BFS solution
|
BFS solution
|
||||||
```python
|
```python
|
||||||
|
|
@ -241,3 +238,9 @@ class Solution:
|
||||||
q.append((next_i, next_j))
|
q.append((next_i, next_j))
|
||||||
visited[next_i][next_j] = True
|
visited[next_i][next_j] = True
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
|
||||||
|
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
|
||||||
|
</a>
|
||||||
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue