DIY: Minimum Remove to Make Valid Parentheses
Solve the interview question "Minimum Remove to Make Valid Parentheses" in this lesson.
We'll cover the following
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.
Level up your interview prep. Join Educative to access 80+ hands-on prep courses.