Back to Questions

Remove Invalid Parentheses (BFS)

25.7K viewsAsked 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.

Practice with This Question
Remove Invalid Parentheses (BFS) - Interview Question