Generate Parentheses — JavaScript medium interview problem
Given `n` pairs of parentheses, generate all combinations of well-formed parentheses. Example: `generateParenthesis(3)` → `["((()))","(()())","(())()","()(())","()()()"]` (any order).
Tags: backtracking, recursion
Practice this Strings problem free in the JS Interview Playground with automated tests and unlockable solutions.