Skip to content

Commit ed7bd10

Browse files
authored
Update valid_paranthesis.py
1 parent 70916d1 commit ed7bd10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

leetcode-master/stack/valid_paranthesis.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ def isValid( s: str) -> bool:
66
print(f"Bracket map -> {bracket_map}")
77
for char in s:
88
print(f"Char in string -> {char}")
9+
910
if char in bracket_map:
1011
print(f"char in bracket map -> {char}")
1112
top_element = stack.pop() if stack else '#'
@@ -20,4 +21,4 @@ def isValid( s: str) -> bool:
2021
return not stack
2122

2223
result = SolutionValidParenthesis.isValid(s="((({{{[[]]}}}})))")
23-
print(result)
24+
print(result)

0 commit comments

Comments
 (0)