Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.
For example, given n = 3, a solution set is:
"((()))", "(()())", "(())()", "()(())", "()()()"
'풀어본 Algorithm 문제 정리' 카테고리의 다른 글
[google] the smallest range from k lists (4) | 2014.09.07 |
---|---|
[OJ.leetcode] rotate-image (0) | 2014.08.30 |
[OJ.leetcode] plus-one (0) | 2014.08.29 |
[OJ.leetcode] remove-duplicates-from-sorted-array (0) | 2014.08.28 |
[OJ.leetcode] balanced-binary-tree (0) | 2014.08.28 |