525. Contiguous Array
Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1.
Example 1:
Example 2:
Note: The length of the given binary array will not exceed 50,000.
Last updated
Was this helpful?
Given a binary array, find the maximum length of a contiguous subarray with equal number of 0 and 1.
Example 1:
Example 2:
Note: The length of the given binary array will not exceed 50,000.
Last updated
Was this helpful?