Sparse Arrays

  • + 0 comments

    Here my Python Solution:

    def matchingStrings(strings, queries): # Write your code here count_list = []

    for i in queries:
        count_list.append(strings.count(i))
    
    return count_list