Tap here to switch tabs
Problem
Submissions

Problem: Generate Parentheses

Generate Parentheses asks you to produce every distinct string of balanced parentheses containing exactly n pairs, with each opening parenthesis matched and properly ordered.

Statement

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

Constraints:

  • 1≤1 \leq n ≤10\leq 10
⋮
Tap here to switch tabs
Problem
Submissions

Problem: Generate Parentheses

Generate Parentheses asks you to produce every distinct string of balanced parentheses containing exactly n pairs, with each opening parenthesis matched and properly ordered.

Statement

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

Constraints:

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