Skip to content

Commit 2bbe988

Browse files
committed
Create README - LeetHub
1 parent c4cd400 commit 2bbe988

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

0022-generate-parentheses/README.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<h2><a href="https://leetcode.com/problems/generate-parentheses">22. Generate Parentheses</a></h2><h3>Medium</h3><hr><p>Given <code>n</code> pairs of parentheses, write a function to <em>generate all combinations of well-formed parentheses</em>.</p>
2+
3+
<p>&nbsp;</p>
4+
<p><strong class="example">Example 1:</strong></p>
5+
<pre><strong>Input:</strong> n = 3
6+
<strong>Output:</strong> ["((()))","(()())","(())()","()(())","()()()"]
7+
</pre><p><strong class="example">Example 2:</strong></p>
8+
<pre><strong>Input:</strong> n = 1
9+
<strong>Output:</strong> ["()"]
10+
</pre>
11+
<p>&nbsp;</p>
12+
<p><strong>Constraints:</strong></p>
13+
14+
<ul>
15+
<li><code>1 &lt;= n &lt;= 8</code></li>
16+
</ul>

0 commit comments

Comments
 (0)