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