aditya109/git-osp-for-beginners

Generate Parentheses [Javascript-Solution required]

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

@aditya109 Can you please assign this to me?

@aditya109 I have Added the solution for the given problem of Generate Parenthesis using JavaScript.

After referring and following the Contributing Guildelines, I have created a PR.

Please review and share your thoughts on the same.
#443

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