Skip to content

Commit 2eda75f

Browse files
committed
leetcode.com 20. Valid Parentheses
문제 링크: https://leetcode.com/problems/valid-parentheses
1 parent d5be9c8 commit 2eda75f

File tree

1 file changed

+1
-1
lines changed
  • leetcode.com 20. Valid Parentheses v2

1 file changed

+1
-1
lines changed

leetcode.com 20. Valid Parentheses v2/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ def isValid(self, s: str) -> bool:
1616
else:
1717
dt.append(c)
1818

19-
return True if len(dt) == 0 else False
19+
return len(dt) == 0

0 commit comments

Comments
 (0)