Skip to content
This repository has been archived by the owner on Oct 14, 2021. It is now read-only.

Generate Parentheses [Golang-Solution required] #421

Closed
aditya109 opened this issue Oct 2, 2021 · 4 comments · Fixed by #545
Closed

Generate Parentheses [Golang-Solution required] #421

aditya109 opened this issue Oct 2, 2021 · 4 comments · Fixed by #545
Assignees

Comments

@aditya109
Copy link
Owner

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
Copy link
Contributor

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

@aditya109
Copy link
Owner Author

aditya109 commented Oct 13, 2021

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
Copy link
Contributor

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

@aditya109
Copy link
Owner Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants