You are viewing a single comment's thread. Return to all comments →
Python
def matchingStrings(stringList, queries): results=[] for query in queries: count = 0 for i in range(len(stringList)): if query == stringList[i]: count=count+1 results.append(count) return results
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 →
Python