We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5be9c8 commit 2eda75fCopy full SHA for 2eda75f
leetcode.com 20. Valid Parentheses v2/main.py
@@ -16,4 +16,4 @@ def isValid(self, s: str) -> bool:
16
else:
17
dt.append(c)
18
19
- return True if len(dt) == 0 else False
+ return len(dt) == 0
0 commit comments