Skip to content

Commit 6c2cb7a

Browse files
bhyun-kimDaleSeo
andauthored
Update valid-parentheses/bhyun-kim.py
Co-authored-by: Dale Seo <[email protected]>
1 parent d9aaae6 commit 6c2cb7a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

valid-parentheses/bhyun-kim.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,4 @@ def isValid(self, s: str) -> bool:
3737
else:
3838
return False
3939

40-
if len(stack) > 0:
41-
return False
42-
else:
43-
return True
40+
return len(stack) == 0

0 commit comments

Comments
 (0)