Longest Balanced Subarray I
A subarray is balanced when it has the same number of distinct even values and distinct odd values. Find the longest balanced subarray.
A subarray is balanced when it has the same number of distinct even values and distinct odd values. Find the longest balanced subarray.