You are viewing a single comment's thread. Return to all comments →
Python3
def matchingStrings(stringList, queries): out = [] for query in queries: matches = sum([x == query for x in stringList]) out.append(matches) return out
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 →
Python3