📅  最后修改于: 2022-03-11 14:46:07.735000             🧑  作者: Mango
from collections import Counter # module to count the values
#write your code here
store = Counter(strings)
ans = []
for q in queries:
ans.append(store[q])
return ans