← DSA practice

Generate Parentheses

MediumStack

The problem

Generate all combinations of n pairs of well-formed parentheses.

Full statement, examples and constraints: see the original problem link below.

Solve it on LeetCode