• + 0 comments

    Python

    def matchingStrings(stringList, queries):
        results=[]
        for query in queries:
            count = 0
            for i in range(len(stringList)):
                if query == stringList[i]:
                    count=count+1
            results.append(count)
        return results