← Questions

Remove invalid parentheses: every minimal result

0
MetaCodingLast asked Apr 2026

Remove the minimum number of parentheses from a string so it becomes valid, and return every distinct valid string you can get that way.

Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding