Update
This commit is contained in:
@@ -159,7 +159,7 @@ class Solution {
|
||||
```
|
||||
|
||||
Python:
|
||||
```python3
|
||||
```python
|
||||
# 方法一,仅使用栈,更省空间
|
||||
class Solution:
|
||||
def isValid(self, s: str) -> bool:
|
||||
@@ -180,7 +180,7 @@ class Solution:
|
||||
return True if not stack else False
|
||||
```
|
||||
|
||||
```python3
|
||||
```python
|
||||
# 方法二,使用字典
|
||||
class Solution:
|
||||
def isValid(self, s: str) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user