...

/

DIY: Minimum Remove to Make Valid Parentheses

DIY: Minimum Remove to Make Valid Parentheses

Solve the interview question "Minimum Remove to Make Valid Parentheses" in this lesson.

Problem Statement

You are given a string with matched and unmatched parentheses. You have to remove the minimum number of parentheses to have only matching parentheses in the string.

Access this course and 1400+ top-rated courses and projects.