Doubt in the logic shown in the video


here at 7.11 min, I don’t think in the line no. 17 or condition is required because we are going to fill only ( bracket in the stack so the case where s.top()!=’(’ will never come.

hello @vageesha

yeah right that condition is not required .

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.