Sales by Match

  • + 0 comments

    Python 1 liner: O(N)

    return sum(map(lambda v: v // 2, Counter(ar).values()))