Skip to content

Commit 61c04cd

Browse files
committed
修改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

+2-1
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)