DEV Community

loading...

Discussion on: Daily Challenge #301 - Array Combos

Collapse
peter279k profile image
peter279k

Here is the simple solution with Python:

def solve(arr):
    result = 1
    for sets in arr:
        sets = list(set(sets))
        result *= len(sets) / 1

    return result
Enter fullscreen mode Exit fullscreen mode