mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 00:43:04 +08:00
Update 0200.岛屿数量.广搜版.md
This commit is contained in:
@ -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>
|
||||||
|
```
|
||||||
|
Reference in New Issue
Block a user