We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
def matchingStrings(strings, queries):
# Write your code here
count_values =[]
for i in range(len(queries)):
if queries[i] in strings:
count_values.append(strings.count(queries[i]))
if queries[i] not in strings:
count_values.append(0)
return count_values
Cookie support is required to access HackerRank
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 →