all test cases are not passing
Balanced paranthesis
Input Format:
A string of β(β , β)β , β{β , β}β and β[β , β]β .
You are just considering β(β and β)β . Try with considering all these cases and then check your code.
i have done this using 3 stacksβ¦is thhere any way of doing it with a single stack
please check my code once
Yesβ¦your approach is also correct.
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.