[LeetCode] 1249. Minimum Remove to Make Valid Parentheses -문제풀이
Description 소괄호가 유효하도록 문자열을 수정하여 반환하는 문제입니다. Given a string s of '(' , ')' and lowercase English characters. Your task is to remove the minimum number of parentheses ( '(' or ')', in any positions ) so that the resulting parentheses string is valid and return any valid string. Formally, a parentheses string is valid if and only if: It is the empty string, contains only lowercase characters, or I..