You are viewing a single comment's thread. Return to all comments →
My Python 3 solution:
def matchingStrings(strings, queries): for i in range(len(queries)): yield sum([1 for e in strings if queries[i] == e])
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 Python 3 solution: