NeetCode #151LC-1249MediumArrays & Hashing
← Back to All Problems#151 · #1249 · Minimum Remove to Make Valid Parentheses(移除无效的括号)
📌 Problem Statement & Constraints
Given a string
s of '(', ')' and lowercase letters, remove the minimum number of parentheses so that the resulting string is valid. Return any valid result. Constraints: 1 <= s.length <= 10^5.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!