Leetcode 525. Contiguous Array
[medium] Contiguous Array - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared…leetcode.com Given a binary array nums, return the maximum length of a contiguous subarray with an equal number of 0 and 1. Example 1: Input: nums = [0,1] Output: 2 Explanation: [0, 1] is the longest contiguous subarray with an equal number of 0 and 1.