Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1
Hi! Maybe you dont check the stack to be empty "...Also, after checking all the parentheses, we need to check the stack to be empty -- if it's not empty, then the parentheses are not balanced."
16th May 2021, 8:38 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
Hi! does your program fail the last seventh test?
16th May 2021, 8:33 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 2
and you have fulfilled the condition of the problem, where it is necessary to check whether the stack is cleared after the last checking bracket?
16th May 2021, 8:37 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar