Balance perenthesis yes /no problem from hackerblock

sir/mam my code failed only one test case can you check my code so that i can understood why i got stuck
this is my appraoch.please rectify my code .

Hi @Korou,
ur code will output yes when input is like for eg.([}{])()()(){} whereas output should have been no.
try modifying ur code so that it doesn’t fail on such testcases.
If u still feel like u r facing any problem, feel free to post ur doubt her.
Hope dis will help.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.