Skip to content

Commit 2b78f76

Browse files
committed
🎉 [q22] Ready
1 parent 55f25e6 commit 2b78f76

File tree

3 files changed

+37
-6
lines changed

3 files changed

+37
-6
lines changed

22/README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
https://leetcode.com/problems/generate-parentheses/
2+
3+
Given `n` pairs of parentheses, write a function to *generate all combinations of well-formed parentheses*.
4+
5+
**Example 1:**
6+
7+
```
8+
Input: n = 3
9+
Output: ["((()))","(()())","(())()","()(())","()()()"]
10+
11+
```
12+
13+
**Example 2:**
14+
15+
```
16+
Input: n = 1
17+
Output: ["()"]
18+
19+
```
20+
21+
**Constraints:**
22+
23+
- `1 <= n <= 8`

22/my_solution.js

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/**
2+
* @param {number} n
3+
* @return {string[]}
4+
*/
5+
var generateParenthesis = function(n) {
6+
7+
};

README.md

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
# Leetcode Solutions
22

3-
1. [Two Sum](./1/)
4-
2. [Add Two Numbers](./2/)
5-
3. [Longest Substring Without Repeating Characters](./3/)
6-
4. [Median of Two Sorted Arrays](./4/)
7-
5. [Longest Palindromic Substring](./5/)
8-
200. [Number of Islands](./200/)
3+
- [1. Two Sum](./1/)
4+
- [2. Add Two Numbers](./2/)
5+
- [3. Longest Substring Without Repeating Characters](./3/)
6+
- [4. Median of Two Sorted Arrays](./4/)
7+
- [5. Longest Palindromic Substring](./5/)
8+
- [7. Generate Parentheses](./7/)
9+
- [200. Number of Islands](./200/)
910

1011
---
1112

0 commit comments

Comments
 (0)