题目链接 https://leetcode-cn.com/problems/find-all-anagrams-in-a-string/ 解题思路 比 最小覆盖字串 简单无非是本题要保持区间[L,R]长度为p的长度,判断这个区间是否满足。 AC代码 class Solution { public: vector<int> findAnagrams(string s, string p) { map<char,int> cnt; vector<int> v; int n=s.size(),m=p.size(),L=1,num=0,count=0,ans[202...