1
0
mirror of https://gitee.com/coder-xiaomo/leetcode-problemset synced 2025-10-12 17:05:15 +08:00
Code Issues Projects Releases Wiki Activity GitHub Gitee
Files
leetcode-problemset/leetcode-cn/problem (Chinese)/变位词组 [group-anagrams-lcci].html
2025-09-29 14:43:44 +08:00

22 lines
570 B
HTML

<p>编写一种方法,对字符串数组进行排序,将所有变位词组合在一起。变位词是指字母相同,但排列不同的字符串。</p>
<p><strong>注意:</strong>本题相对原题稍作修改</p>
<p><strong>示例:</strong></p>
<pre>
<strong>输入:</strong><code>["eat", "tea", "tan", "ate", "nat", "bat"]</code>,
<strong>输出:</strong>
[
["ate","eat","tea"],
["nat","tan"],
["bat"]
]</pre>
<p><strong>说明:</strong></p>
<ul>
<li>所有输入均为小写字母。</li>
<li>不考虑答案输出的顺序。</li>
</ul>