Doubt in the question

Sir, according to me both the test cases are redundant.

hello @vageesha
no second test case is not.

((a+(b))+(c+d))

we dont have extra () in this case.

this type of brackerting is considered as duplicate ->((something))

Sir, but as per my knowledge redundant brackets are those which when removed do not alter the expression. In this case if we remove the brackets around b, even then the expression remains the same.

for this problem

consdier (b) such case as non redundant.
they have never defined what is b.
it can be (3) or (2+4) or (anything thing).

1 Like

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.