mirror of
https://gitee.com/coder-xiaomo/leetcode-problemset
synced 2025-09-13 11:21:42 +08:00
add leetcode problem-cn part2
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
<p>Write a method to sort an array of strings so that all the anagrams are in the same group.</p>
|
||||
|
||||
<p><b>Note: </b>This problem is slightly different from the original one the book.</p>
|
||||
|
||||
<p><strong>Example:</strong></p>
|
||||
|
||||
<pre>
|
||||
<strong>Input:</strong> <code>["eat", "tea", "tan", "ate", "nat", "bat"]</code>,
|
||||
<strong>Output:</strong>
|
||||
[
|
||||
["ate","eat","tea"],
|
||||
["nat","tan"],
|
||||
["bat"]
|
||||
]</pre>
|
||||
|
||||
<p><strong>Notes: </strong></p>
|
||||
|
||||
<ul>
|
||||
<li>All inputs will be in lowercase.</li>
|
||||
<li>The order of your output does not matter.</li>
|
||||
</ul>
|
Reference in New Issue
Block a user