Back to QuestionsPractice with This Question
Remove Invalid Parentheses (BFS)
25.7K views•Asked at Google•
Hard
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
Practice answering orally or with text to get instant AI feedback.