#3755
Find Maximum Balanced XOR Subarray Length
specialist · 865 · lc medium +31 · 50.8% accepted · 106 likes · top 39%
Description
Given an integer array nums, return the length of the longest subarray whose bitwise XOR equals zero and which contains an equal count of even and odd elements, or 0 if no such subarray exists.
Code
1
2
3