Generate Parentheses [Golang-Solution required]
Closed this issue · 4 comments
aditya109 commented
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/
pranjalg13 commented
Hey, @aditya109 I am taking this since recently started learning GO , might be helpful to practice :).
aditya109 commented
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 !
pranjalg13 commented
Hey @aditya109 please look at the PR once. Added the code for the same.
aditya109 commented
This issue was solved by @pranjalg13 , the PR was successfully merged ! Thereby, closing this issue !