Help with clarification

in line 21 why is it not close <= open because number of both brackets should be equal

hello @raghav007

for which problem u r asking?
also pls share the code that u r referring

d01ef125-dbf7-4d85-a451-732308c4b704
sorry didnt get shared before, is it visible?

its not uploaded


in line 21 why isnt it close <= open

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.