the condition to put a close bracket should be
close<=open
but in the video it is
close<open
please explain why close<=open is wrong
the condition to put a close bracket should be
close<=open
but in the video it is
close<open
please explain why close<=open is wrong
Hey @divyam_13
If close==open already then that means number of opening bracets is same as closing brackets
and if you place another closing again then that become unbalanced
Say
( o=1,c=0
() o=1,c=1
Now o==c and if we place ) then become unbalanced
())