mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2026-02-07 04:43:31 +08:00
更新 1047.删除字符串中的所有相邻重复项.md python注释
This commit is contained in:
@@ -210,7 +210,7 @@ class Solution:
|
||||
```
|
||||
|
||||
```python3
|
||||
# 双指针
|
||||
# 方法二,使用双指针模拟栈,如果不让用栈可以作为备选方法。
|
||||
class Solution:
|
||||
def removeDuplicates(self, s: str) -> str:
|
||||
res = list(s)
|
||||
|
||||
Reference in New Issue
Block a user