You are given an integer array nums and an integer k.
The bitwise $ ext{XOR}$ of a contiguous segment of length k is the bitwise $ ext{XOR}$ of all elements in that segment.
Return the minimum number of elements you need to modify in nums such that the bitwise $ ext{XOR}$ of every contiguous segment of length k is equal to
Constraints:
k nums.length
nums[i]
You are given an integer array nums and an integer k.
The bitwise $ ext{XOR}$ of a contiguous segment of length k is the bitwise $ ext{XOR}$ of all elements in that segment.
Return the minimum number of elements you need to modify in nums such that the bitwise $ ext{XOR}$ of every contiguous segment of length k is equal to
Constraints:
k nums.length
nums[i]