Generate Parentheses

Recursion & Backtracking ยท medium

Implement `generateParenthesis(n)` returning all combinations of `n` pairs of well-formed parentheses, adding `(` before `)` at each step.

Learning resources

Loading...

Run your code to see results.