Given n pairs of parentheses,our task is to write a function to generate all combinations of well-formed parentheses.
eg.
Input: n = 3
Output: ["((()))","(()())","(())()","()(())","()()()"]
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||
Given n pairs of parentheses,our task is to write a function to generate all combinations of well-formed parentheses.
eg.
Input: n = 3
Output: ["((()))","(()())","(())()","()(())","()()()"]