I cannot figure out why does it always show 'No" for every string that I input. Please review my code. I tried a lot to resolve on my own but could not make it possib;e.
Balanced parenthesis - showing wrong ans
Hello @LPLC0114,
I am really really sorry.
I somehow skipped your doubt.
I hope, you would understand.
Now, coming back to your doubt:
This is happening because you are not popping the element from the stack when there is a match.
I have modified your code, you can check it here:
Hope, it would help.
Give a like, if you are satisfied.
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.