Please check. It is working for 2 cases but not for the other 2.
Balanced parenthesis stack
u also have to check for
{ } and [ ]
u r checking for only ()
Sir, for this also only 2 test cases are working
u r not checking for a case “”" [ ] “”"" this one u check twice for “” { } “” this
also these paraentheses are random so u have to check in one stack only
for refernece check this
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.