字符串类问题

1、若题目中明确说明只包含字母,可以考虑哈希表

字符串题解 可参考:http://3ms.huawei.com/km/blogs/details/7606175


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/

567. 字符串的排列
https://leetcode-cn.com/problems/permutation-in-string/
1160. 拼写单词
https://leetcode-cn.com/problems/find-words-that-can-be-formed-by-characters/

字符串:
43. 字符串相乘
https://leetcode-cn.com/problems/multiply-strings/
767. 重构字符串
https://leetcode-cn.com/problems/reorganize-string/
1268. 搜索推荐系统
https://leetcode-cn.com/problems/search-suggestions-system/

猜你喜欢

转载自www.cnblogs.com/sunshine1218/p/12081595.html