I have tried for balanced paranthesis—https://hack.codingblocks.com/app/practice/2/709/problem
but when I run this error occured. I tried to debug this code but cant find the error. My code-
https://ide.codingblocks.com/s/201939
Thank you.
Get error while running
Hi @Arnabiswas,
1)u r not outputing ur answer in correct way. you r supposed to output yes or no.
2)try to modify ur if else condition, since u r using 3 if-else, this is causing error. since, since if can return false, else will surely be executed.
eg. stack=’((’ and s[i]=’)’, so first if will be executed and second else will be executed which is wrong.
Hope dis helps
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.