@@ -0,0 +1,570 @@
+public class Solution %7B%0A    List%3CString%3E result = new ArrayList%3CString%3E();%0A    %0A    public List%3CString%3E generateParenthesis(int n) %7B%0A        if(n == 0)%7B%0A            return result;%0A        %7D%0A        helper(n,n,%22%22);%0A        return result;%0A    %7D%0A    %0A    private void helper(int left, int right, String str)%7B%0A        if(left == 0 && right  == 0)%7B%0A            result.add(str);%0A            return;%0A        %7D%0A        if(left %3E 0)%7B%0A            helper(left - 1, right, str+%22(%22);%0A        %7D%0A        if(right %3E left)%7B%0A            helper(left, right - 1, str+%22)%22);%0A        %7D%0A    %7D%0A%7D

Q22 Generate Parentheses