Challenge: Find Duplicate Parentheses

Let’s Learn how we can find duplicate or redundant parentheses.

Problem statement

Given an expression, find if there are duplicate or redundant parentheses in it. Redundant parentheses are those parenthesis pairs that do not change the outcome of the expression.

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.