• + 0 comments

    Python 3

    import functools
    def gemstones(arr):
        return len(functools.reduce(lambda x,y: x&y, map(set, arr)))