Back to Questions

Generate Parentheses

72.5K viewsAsked at Google
Medium

Question Explain

Given $n$ pairs of parentheses, write a function to generate all combinations of well-formed parentheses.

Start Trying This Question Simulation

Practice answering orally or with text to get instant AI feedback.

Practice with This Question