in line 21 why is it not close <= open because number of both brackets should be equal
Help with clarification
sorry didnt get shared before, is it visible?
ok equality sign must not be there becuase->
let say close ==open which means all closed bracktes are already matched with all open brackets.
so we dont have any extra open bracket and becuase we dont have extra open bracket we cannot put close bracket to balance it
oh okay but Ijust coded it up and its working with =
just check the output , they are not balanced
no its not I though it was
yeah agreed I thought it was working with = sign
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.