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 d9aaae6 commit 6c2cb7aCopy full SHA for 6c2cb7a
valid-parentheses/bhyun-kim.py
@@ -37,7 +37,4 @@ def isValid(self, s: str) -> bool:
37
else:
38
return False
39
40
- if len(stack) > 0:
41
- return False
42
- else:
43
- return True
+ return len(stack) == 0
0 commit comments