- Source : Link
- Author : Han
- Date : 2022-02-15
Problems
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
Example 1:
1 | |
Example 2:
1 | |
Solution
1 | |
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
Example 1:
1 | |
Example 2:
1 | |
1 | |