The number of valid parentheses is to generate valid parentheses for given n. Free download code in Java, JavaScript and Python.