You are viewing a single comment's thread. Return to all comments →
Thumbs up. I guess we could adapt the loops a bit:
for (const auto& s : strings) m[s]++; for (const auto& q : queries) v.push_back(m[q]);
Seems like cookies are disabled on this browser, please enable them to open this website
Sparse Arrays
You are viewing a single comment's thread. Return to all comments →
Thumbs up. I guess we could adapt the loops a bit: