You are viewing a single comment's thread. Return to all comments →
Classic usecase of mapreduce
from functools import reduce from operator import and_ def gemstones(arr): return len(reduce(and_,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 →
Classic usecase of mapreduce