You are viewing a single comment's thread. Return to all comments →
My version in Python3:
def gemstones(arr): unique_chars = set(''.join(arr)) return sum(all(c in s for s in arr) for c in unique_chars)
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 →
My version in Python3: