Balanced paranthesis


what is wrong in this code?

hello @nmaurya760 dont make the final result in the last onlt i.e yes or no only if the stack gets empty then it is balanced and otherwise it is not balanced .
check in between also if at any point the condition violated then only return no .
no need to traverse further .
and if you reach the end of the loop and you are at the last then this itself means that the string is balanced .
if you still have any doubt please write here .
Happy Learning !!

@nmaurya760 try this https://ide.codingblocks.com/s/349780.
Happy Learning !!

Hey @nmaurya760
whats the issue?