I am getting 1 out 4 testcases wrong. Can u point out which case am I missing? https://ide.codingblocks.com/s/100637
BALANCED PARANTHESIS - Doubt
Hello,
You have to create a single stack for all three kind of braces.
Let me know if it still does not work.
Hope, it would help.
Give a like if you are satisfied.
Sir I don’t think 3 stacks would make a difference. I had tried earlier with 1 stack, Please check my code.
Or if u could tell me for which testcase is the code failing, it would be great.
Then, you must be doing something wrong earlier because you are required to solve this with one stack.
If you would use 3 different stacks, you wouldn’t be able to keep track of their positions.
example:
[(])
Your code is printing: Yes
Expected Output: No
Hope, I have cleared your doubt.
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.
Thanks a lot for the explanation.
I wont mind a like.