• + 0 comments

    vector matchingStrings(vector stringList, vector queries) {

    unordered_map mymap; vector ans;

    for( auto i : stringList){ mymap[i]++; }

    for( auto i : queries){ ans.push_back(mymap[i]); }

    return ans; }