Find Maximum Balanced XOR Subarray Length
Use prefix XOR and the even-minus-odd balance as one key, and keep the first position where each key appears.
Use prefix XOR and the even-minus-odd balance as one key, and keep the first position where each key appears.