Skip to content

Commit e67b22f

Browse files
committed
Create README - LeetHub
1 parent 330a15a commit e67b22f

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

0049-group-anagrams/README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<h2><a href="https://leetcode.com/problems/group-anagrams/">49. Group Anagrams</a></h2><h3>Medium</h3><hr><p>Given an array of strings <code>strs</code>, group the <span data-keyword="anagram">anagrams</span> together. You can return the answer in <strong>any order</strong>.</p>
2+
3+
<p>&nbsp;</p>
4+
<p><strong class="example">Example 1:</strong></p>
5+
6+
<div class="example-block">
7+
<p><strong>Input:</strong> <span class="example-io">strs = [&quot;eat&quot;,&quot;tea&quot;,&quot;tan&quot;,&quot;ate&quot;,&quot;nat&quot;,&quot;bat&quot;]</span></p>
8+
9+
<p><strong>Output:</strong> <span class="example-io">[[&quot;bat&quot;],[&quot;nat&quot;,&quot;tan&quot;],[&quot;ate&quot;,&quot;eat&quot;,&quot;tea&quot;]]</span></p>
10+
11+
<p><strong>Explanation:</strong></p>
12+
13+
<ul>
14+
<li>There is no string in strs that can be rearranged to form <code>&quot;bat&quot;</code>.</li>
15+
<li>The strings <code>&quot;nat&quot;</code> and <code>&quot;tan&quot;</code> are anagrams as they can be rearranged to form each other.</li>
16+
<li>The strings <code>&quot;ate&quot;</code>, <code>&quot;eat&quot;</code>, and <code>&quot;tea&quot;</code> are anagrams as they can be rearranged to form each other.</li>
17+
</ul>
18+
</div>
19+
20+
<p><strong class="example">Example 2:</strong></p>
21+
22+
<div class="example-block">
23+
<p><strong>Input:</strong> <span class="example-io">strs = [&quot;&quot;]</span></p>
24+
25+
<p><strong>Output:</strong> <span class="example-io">[[&quot;&quot;]]</span></p>
26+
</div>
27+
28+
<p><strong class="example">Example 3:</strong></p>
29+
30+
<div class="example-block">
31+
<p><strong>Input:</strong> <span class="example-io">strs = [&quot;a&quot;]</span></p>
32+
33+
<p><strong>Output:</strong> <span class="example-io">[[&quot;a&quot;]]</span></p>
34+
</div>
35+
36+
<p>&nbsp;</p>
37+
<p><strong>Constraints:</strong></p>
38+
39+
<ul>
40+
<li><code>1 &lt;= strs.length &lt;= 10<sup>4</sup></code></li>
41+
<li><code>0 &lt;= strs[i].length &lt;= 100</code></li>
42+
<li><code>strs[i]</code> consists of lowercase English letters.</li>
43+
</ul>

0 commit comments

Comments
 (0)