(int n)
| 16 | List<String> res = new ArrayList<>(); |
| 17 | |
| 18 | public List<String> generateParenthesis(int n) { |
| 19 | backtrack(0, 0, n); |
| 20 | return res; |
| 21 | } |
| 22 | |
| 23 | private void backtrack(int openN, int closedN, int n) { |
| 24 | if (openN == closedN && closedN == n) { |