Sample Input 1:
(a+b)+c
Sample Output 1:
false
Explanation:
Since there are no needless brackets, hence, the output must be 'false'.
Sample Input 2:
((a+b))
Sample Output 2:
true
Explanation”
The expression can be reduced to (a+b). Hence the expression has redundant brackets and the output will be 'true'.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here