[leetcode]301. Remove Invalid Parentheses 去除无效括号

Posted 程序媛詹妮弗

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[leetcode]301. Remove Invalid Parentheses 去除无效括号相关的知识,希望对你有一定的参考价值。

Remove the minimum number of invalid parentheses in order to make the input string valid. Return all possible results.

Note: The input string may contain letters other than the parentheses ( and ).

Example 1:

Input: "()())()"
Output: ["()()()", "(())()"]
Example 2:

Input: "(a)())()"
Output: ["(a)()()", "(a())()"]
Example 3:

Input: ")("
Output: [""]

 






以上是关于[leetcode]301. Remove Invalid Parentheses 去除无效括号的主要内容,如果未能解决你的问题,请参考以下文章

LeetCode题301—Remove Invalid Parentheses

leetcode 301-Remove Invalid Parentheses(hard)

[leetcode]301. Remove Invalid Parentheses 去除无效括号

[LeetCode] 301. Remove Invalid Parentheses 移除非法括号

LeetCode 301. Remove Invalid Parentheses(DP)

leetcode301. Remove Invalid Parentheses