You are viewing a single comment's thread. Return to all comments →
def matchingStrings(strings, queries): op=[] for q in queries: op.append(len(list(filter(lambda x: x==q,strings )))) return op
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): op=[] for q in queries: op.append(len(list(filter(lambda x: x==q,strings )))) return op