Question

Write a function to generate all balanced parenthesis of given length?

Login to Submit

Examples

Input: 6
Output: ["((()))", "(()())", "(())()", "()(())", "()()()"]