aditya109/git-osp-for-beginners

Generate Parentheses [Golang-Solution required]

Closed this issue · 4 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/

Hey, @aditya109 I am taking this since recently started learning GO , might be helpful to practice :).

Hey, @aditya109 I am taking this since recently started learning GO , might be helpful to practice :).

Hi @pranjalg13 ! Sure thing. I have assigned this issue to you. Happy hacking !

Hey @aditya109 please look at the PR once. Added the code for the same.

This issue was solved by @pranjalg13 , the PR was successfully merged ! Thereby, closing this issue !