• + 0 comments

    There are two ways to solve this with Counter: The normal way-

    # result = 0
        # for a in ar.values():
        #     result += int(a/2)
        # return result