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.
- Sparse Arrays
- Discussions
Sparse Arrays
Sparse Arrays
Sort by
recency
|
212 Discussions
|
Please Login in order to post a comment
In Python: def matchingStrings(strings, queries): # Write your code here counters = Counter(strings) result = [] for query in queries: result.append(counters.get(query,0))
return result
Kotlin O(M +N) in 2 lines
This is supposed to be my GO solution. BUT I CANT COMPILE IT. I think there's a problem with the other part of the code in GO.
O(m+n) solution for javascript
`
Python easily readable.