• + 0 comments

    c#

     int qCount = queries.Count;
    
     int[] count = new int[qCount];
    
     for (int i = 0; i < stringList.Count; i++)
     {
         for (int j = 0; j < queries.Count; j++)
         {
             if (queries[j] == stringList[i])
             {
                 count[j]++;
             }
         }
     }