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:
20
算法题(国内版)/problem (Chinese)/变位词组 [group-anagrams-lcci].html
Normal file
20
算法题(国内版)/problem (Chinese)/变位词组 [group-anagrams-lcci].html
Normal file
@@ -0,0 +1,20 @@
|
||||
<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>
|
Reference in New Issue
Block a user