Generate Parentheses
Great! Let's move on to the next problem.
Explain the Problem
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
Example:
Input: n = 3
Output:
[
"((()))",
"(()())",
"(())()",
"()(())",
"(...
lietcode.hashnode.dev3 min read