Given an integer array nums, find the maximum length of a contiguous subarray that satisfies the following two conditions:
The bitwise XOR sum of all elements in the subarray is equal to
The subarray contains an equal count of even numbers and odd numbers.
Return the maximum length of such a subarray. If no such subarray exists, return
Constraints:
nums.length
nums[i]
Given an integer array nums, find the maximum length of a contiguous subarray that satisfies the following two conditions:
The bitwise XOR sum of all elements in the subarray is equal to
The subarray contains an equal count of even numbers and odd numbers.
Return the maximum length of such a subarray. If no such subarray exists, return
Constraints:
nums.length
nums[i]