some test case has not passed. please check it.
Balanced Parenthesis problem
hello @rohit_2425
here u should use their complement pair.
i,e in place of stk.top() != ‘)’
it should be stk.top()!=’(’
similary for other two brackets
make above changes in ur code and it will work
thanks sir…now it working.
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.
