You are viewing a single comment's thread. Return to all comments →
Python 3
import functools def gemstones(arr): return len(functools.reduce(lambda x,y: x&y, 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 →
Python 3