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