Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 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."
+ 2
Hi! does your program fail the last seventh test?
+ 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?