aditya109/git-osp-for-beginners

Generate Parentheses [C#-Solution required]

Closed this issue · 2 comments

Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.

Example 1:

Input: n = 3
Output: ["((()))","(()())","(())()","()(())","()()()"]

Example 2:

Input: n = 1
Output: ["()"]

Constraints:

  • 1 <= n <= 8

Reference: https://leetcode.com/problems/generate-parentheses/

Hi, could you assign this to me? Thanks,

Hi @pakosel ! I have assigned this issue to you. Before raising a PR, please take a look at CONTRIBUTING.md and follow the guidelines. Also, if it is not too much to ask, please consider starring ⭐ the repository. It helps boost the repo popularity and guide more people towards active contribution. That is all. Happy hacking !