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/

 

相关文章:

  • 2021-10-03
  • 2021-06-07
  • 2022-12-23
  • 2022-12-23
  • 2021-09-10
  • 2022-12-23
  • 2021-10-30
  • 2022-01-13
猜你喜欢
  • 2021-06-24
  • 2021-09-15
  • 2022-12-23
  • 2022-12-23
  • 2022-01-05
  • 2021-06-21
相关资源
相似解决方案