Skip to content

Latest commit

 

History

History
77 lines (32 loc) · 977 Bytes

File metadata and controls

77 lines (32 loc) · 977 Bytes

中文文档

Description

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: [""]

Solutions

Python3

Java

...