Generate Parentheses

Try to solve the Generate Parentheses problem.

Statement

For a given number, n, generate all combinations of balanced parentheses.

Constraints:

  • 1≤1 \leq n ≤10\leq 10

Examples

Create a free account to view this lesson.

By signing up, you agree to Educative's Terms of Service and Privacy Policy