首页 > 其他 > 详细

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

时间:2018-10-18 10:22:38      阅读:158      评论:0      收藏:0      [点我收藏+]

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 去除无效括号

原文:https://www.cnblogs.com/liuliu5151/p/9808254.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!