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