• + 0 comments

    Python 3

    def sockMerchant(n, ar):
        r = 0
        
        for i in set(ar):
            r += ar.count(i) // 2
        return r