Help me to find out where am i going wrong?
Balanced parenthesis
Hi,
Your code will give wrong answer for testcase ‘(}’. this is is not balanced but your code states that it is balance.
Actually you have to write separate conditions for each type of bracket. But you have included all conditions at once in else part of your code.
Now try to solve the question.
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.