hey i didn’t understood the question can you please explain it to me in detail plss
Brackets all over
you have given a string (s) of len= m
and you to finally make it to len=n
by appending a string a and b such that string will be a+s+b of len=n
e.g if n=4 and m=2 and str="(("
so we have to append the string a and b so that the resultant length will be 4 and should satisfies the given 2 conditions.
so we can have only one combination a="" and b="))"
so that a+s+b=="(())" and length is 4.
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.