A Solution to Leetcode 1249. Minimum Remove to Make Valid Parentheses
Problem statement
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.
...
nhutnguyen.hashnode.dev3 min read