1.排序
2.建map,键为字母,值为出现的次数
参考:
https://leetcode.com/problems/valid-anagram/discuss/66519/2-C%2B%2B-Solutions-with-Explanations
leetcode242 有效的字母异位词
最新推荐文章于 2024-07-26 10:16:33 发布
1.排序
2.建map,键为字母,值为出现的次数
参考:
https://leetcode.com/problems/valid-anagram/discuss/66519/2-C%2B%2B-Solutions-with-Explanations