when is the condition for balanced expression is true?No true is being returned from function?
Stack-Balanced paranthesis
@itsexp_2302
hello Anubhav,
if ur stack will get empty after completing the iteration then paranthesis will be balanced otherwise it is not.
same has been implemented in function as well
check last line of function we are returning s.empty()
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.