You are viewing a single comment's thread. Return to all comments →
Here's an even shorter one-liner in Python3 in modern HackerRank setup.
def gemstones(arr): return len(set.intersection( *map(set, arr) ))
Seems like cookies are disabled on this browser, please enable them to open this website
Gemstones
You are viewing a single comment's thread. Return to all comments →
Here's an even shorter one-liner in Python3 in modern HackerRank setup.