Daily challenge for 2025-11-13
317. Generate Parentheses
Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. Return the result in sorted order.
Example:Input: n = 3Output: ["((()))","(()())","(())()","()(())","()()()"]
Example 2:Input: n = 1Output: ["()"]
Run this challenge interactively in Python or JavaScript when the app loads.