...

/

Remove Invalid Parentheses

Remove Invalid Parentheses

Try to solve the Remove Invalid Parentheses problem.

Statement

You are given a string, s, that contains:

  • Lowercase English letters

  • Opening '(' and closing ')' parentheses

A string is considered valid if:

  1. All opening parentheses '(' are closed properly by a matching ')'.

  2. The parentheses are in ...