Search⌘ K
AI Features

Remove Invalid Parentheses

Remove Invalid Parentheses asks you to remove as few parentheses as possible from a string, then return every unique version whose parentheses are properly matched and nested.

Statement

You are given a string, s, that contains:

    ...