1、若题目中明确说明只包含字母,可以考虑哈希表
LeetCode常见题型:
1、字符串的排列
https://leetcode-cn.com/problems/permutation-in-string/
2、 拼写单词
https://leetcode-cn.com/problems/find-words-that-can-be-formed-by-characters/
3、 字符串相乘
https://leetcode-cn.com/problems/multiply-strings/
5、 重构字符串
https://leetcode-cn.com/problems/reorganize-string/
6. 搜索推荐系统
https://leetcode-cn.com/problems/search-suggestions-system/