Skip to content

Commit a269aff

Browse files
Update valid-parentheses/SamTheKorean.py
Co-authored-by: Dale Seo <[email protected]>
1 parent d64fd2e commit a269aff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

valid-parentheses/SamTheKorean.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def isValid(self, s: str) -> bool:
1515
if not stack:
1616
return False
1717
# if closing bracket doesnt match with the latest type of opening bracket
18-
elif ch != parentheses[stack.pop()]:
18+
if ch != parentheses[stack.pop()]:
1919
return False
2020

2121
# True if stack is empty after going through the process above

0 commit comments

Comments
 (0)