You are viewing a single comment's thread. Return to all comments →
My C# solution
public static List<int> matchingStrings(List<string> strings, List<string> queries) { return queries.Select(q => strings.Count(s => s == q)) .ToList<int>(); }
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 →
My C# solution