Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9dae05b

Browse files
🧙‍♂️(array): 463. 岛屿的周长 补充 title
1 parent b7518db commit 9dae05b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/data-structure/array/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1683,7 +1683,7 @@ class Solution:
16831683
return res
16841684
```
16851685

1686-
### 解法二:
1686+
### 解法二:算周长
16871687

16881688
因为岛屿内部没有湖,所以本质上就是求一个矩形的周长。所以只要求出岛屿的上侧(或下侧)与左侧(或右侧)的长度和即可,再将该长度乘以 2。
16891689

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /