ld print (()) and ()().
E.g. when N is 3, we should get ((())), (()()), (())(), ()(()), ()()().
Source</li><li>E.g. when N is 2, the function should print (()) and ()().</li><li>E.g. when N is 3, we should get ((())), (()()), (())(), ()(()), ()()().</li></ul></div> </div>