更新 1047.删除字符串中的所有相邻重复项.md python注释

This commit is contained in:
Eyjan_Huang
2021-08-20 02:58:09 +08:00
committed by GitHub
parent ce2c6fb562
commit 13293e8c2f

View File

@ -210,7 +210,7 @@ class Solution:
```
```python3
# 双指针
# 方法二,使用双指针模拟栈,如果不让用栈可以作为备选方法。
class Solution:
def removeDuplicates(self, s: str) -> str:
res = list(s)