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