AlgoMaster Logo

Remove Invalid Parentheses

s=()
0 / 3
Step:Each removal is one BFS level; stop at the first level with a valid string.