Skip to main content
Generate Parentheses | AlgoCracked
AlgoCracked
ProblemsGenerate Parentheses
Medium73.0% acceptance
Blind75StringBacktrackingDynamic Programming

Generate Parentheses

Given n pairs of parentheses, return every well-formed combination of n ( and n ) . Return the strings in any order . Input format Input is [n] , e.g. [3] .

Loading workspace…