Search⌘ K
AI Features

Remove Invalid Parentheses

Remove Invalid Parentheses asks you to remove as few parentheses as possible from a string, returning every unique result that is valid and properly nested.

Statement

You are given a string, s, that contains:

    ...