update 20
This commit is contained in:
parent
15e24a8f25
commit
a4e2623dbf
@ -16,6 +16,9 @@ class Solution:
|
|||||||
try:
|
try:
|
||||||
if symbol_dict[stack_top] == i:
|
if symbol_dict[stack_top] == i:
|
||||||
continue
|
continue
|
||||||
|
else:
|
||||||
|
stack.append(stack_top)
|
||||||
|
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user