Problem
Givenn pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
Examples
Constraints
- 1 <= n <= 8
Tested Python solution for LeetCode 22 with 11 pytest cases. Generate a practice environment with lcpy.
n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.