Minimum Remove to Make Valid Parentheses
Try to solve the Minimum Remove to Make Valid Parentheses problem.
We'll cover the following
Statement
Given a string, s
, that may have
Constraints:
-
s.length
s[i]
is either an opening parenthesis , a closing parenthesiss , or a lowercase English letter.
Examples
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy