Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1.
Example 1:
|
|
Note: The length of the given binary array will not exceed 50,000.
A picture inside solution secture helps a lot. Solution
|
|
Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1.
Example 1:
|
|
Note: The length of the given binary array will not exceed 50,000.
A picture inside solution secture helps a lot. Solution
|
|