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 61c04cd

Browse files
修改0383.赎金信.md的时间复杂度分析
1 parent 6731702 commit 61c04cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎problems/0383.赎金信.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public:
104104
};
105105
```
106106

107-
* 时间复杂度: O(n)
107+
* 时间复杂度: O(m+n),其中m表示ransomNote的长度,n表示magazine的长度
108108
* 空间复杂度: O(1)
109109

110110

@@ -470,3 +470,4 @@ bool canConstruct(char* ransomNote, char* magazine) {
470470
<a href="https://programmercarl.com/other/kstar.html" target="_blank">
471471
<img src="../pics/网站星球宣传海报.jpg" width="1000"/>
472472
</a>
473+

0 commit comments

Comments
(0)

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