I have two doubts in concept

Sir, (1) At time 4:00, why cant we do the ( open <= N ). (2) At time 4:22, same doubt as previous. why cant we do the ( close <= open). why are only applying the ‘lesser than’ conditions. why cant we put the ’ eqal to ’ condition?

hello @chandreshmaurya
total we have n open brackets. so if n brackets are already placed then cannot place n+1th open bracket .
thats why we are checking if we have some remainig open brackets or not open < n.

we can place close brackets only if we have placced more number open than cclosed brackets.thats why open > close