Skip to content

Commit bf682e4

Browse files
authored
Update 1332.remove-palindromic-subsequences.md
1 parent df284db commit bf682e4

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

problems/1332.remove-palindromic-subsequences.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ s 仅包含字母 'a'  和 'b'
5959
- 否则需要两次
6060
- 一定要注意特殊情况, 对于空字符串,我们需要 0 次
6161

62+
63+
## 关键点解析
64+
65+
- 注意审题目,一定要利用题目条件“只含有 a 和 b 两个字符”否则容易做的很麻烦
66+
6267
## 代码
6368

6469
代码支持:Python3
@@ -96,6 +101,15 @@ class Solution:
96101

97102
```
98103

99-
## 关键点解析
104+
**复杂度分析**
105+
- 时间复杂度:$O(N)$
106+
- 空间复杂度:$O(1)$
107+
108+
更多题解可以访问我的LeetCode题解仓库:https://github.com/azl397985856/leetcode 。 目前已经35K star啦。
109+
110+
关注公众号力扣加加,努力用清晰直白的语言还原解题思路,并且有大量图解,手把手教你识别套路,高效刷题。
111+
112+
113+
![](https://tva1.sinaimg.cn/large/007S8ZIlly1gfcuzagjalj30p00dwabs.jpg)
114+
100115

101-
- 注意审题目,一定要利用题目条件“只含有 a 和 b 两个字符”否则容易做的很麻烦

0 commit comments

Comments
 (0)