Back to Question

Remove Invalid Parentheses (BFS)

Question Explain

Given a string with parentheses, remove the minimum number of invalid parentheses to make the input string valid. Return all possible valid results. Use BFS.

Start Trying This Question Simulation

Click "Start Speaking" and answer the question naturally.