LeetCode 22. Generate Parentheses
Recursion
Given n
pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
Example 1:
Example 2:
Constraints:
1 <= n <= 8
Solution:
Last updated
Recursion
Given n
pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
Example 1:
Example 2:
Constraints:
1 <= n <= 8
Last updated