MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / matchingStrings

Function matchingStrings

Hackerrank_problems/Sparse Array/Solution.py:10–14  ·  view source on GitHub ↗
(strings, queries)

Source from the content-addressed store, hash-verified

8
9# Complete the matchingStrings function below.
10def matchingStrings(strings, queries):
11 res = []
12 for i in queries:
13 res.append(strings.count(i))
14 return res
15
16if __name__ == '__main__':
17 fptr = open(os.environ['OUTPUT_PATH'], 'w')

Callers 1

Solution.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected