标签:hint app param car notice 数组 while ams lintcode
给出一个字符串数组S,找到其中所有的乱序字符串(Anagram)。如果一个字符串是乱序字符串,那么他存在一个字母集合相同,但顺序不同的字符串也在S中。
样例1:
输入:["lint", "intl", "inlt", "code"]
输出:["lint", "inlt", "intl"]
样例 2:
输入:["ab", "ba", "cd", "dc", "e"]
输出: ["ab", "ba", "cd", "dc"]
什么是Anagram?
所有的字符串都只包含小写字母
标签:hint app param car notice 数组 while ams lintcode
原文地址:https://www.cnblogs.com/yunxintryyoubest/p/12834066.html