Need help with this

Revision en1, by werewolf97, 2021-03-12 19:40:38

Given a string A. You need to solve Q queries. In each queries, you will be given a string B[i]. You need to find the count of the number of substrings of A which are anagrams of B[i].

Contraints:

1<=|A|, |B[i]|<=10^5 1<=Q<=10^5 summation|B[i]|<=2x10^5 All the strings consists of lowercase English letters.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English werewolf97 2021-03-12 19:40:38 336 Initial revision (published)