Programming Question

Question: Implement an algorithm to print all valid (e.g., properly opened and closed combinations of n pairs of parentheses. Input: 3 Output: ((())), (()()), (())(), ()(()), ()()()

From: Cracking the Coding Interview [McDowell]

Subject: Recursion and Dynamic Programming

Load Another Question


Select a Subject