You are viewing a single comment's thread. Return to all comments →
Another win for Python:
def matchingStrings(string_list: list[str], queries: list[str]) -> list[int]: results = [] for query in queries: results.append(sum([1 for string_ in string_list if query == string_])) 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 →
Another win for Python: