• + 0 comments

    Python

    def gemstones(arr):
        sets = [set(i) for i in arr]
        return len(set.intersection(*sets))