Updated: 2024-03-12 1 min read On This Pageclass Solution: def minOperations(self, nums: List[int], k: int) -> int: return reduce(xor, nums, k).bit_count()