You are viewing a single comment's thread. Return to all comments →
Nice! That list comprehension is much more readable than the map I ended up with:
return map(lambda query: strings.count(query), queries)
Edit: but a lot of these one-liners could really benefit from using better data structures
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 →
Nice! That list comprehension is much more readable than the map I ended up with:
Edit: but a lot of these one-liners could really benefit from using better data structures