NeetCode #152LC-525MediumArrays & Hashing
← Back to All Problems#152 · #525 · Contiguous Array(连续数组)
📌 Problem Statement & Constraints
Given a binary array
nums, return the maximum length of a contiguous subarray with an equal number of 0s and 1s. Constraints: 1 <= nums.length <= 10^5.🔒
Sign In to Unlock Full Solutions for All 973 Problems
Sign in to access step-by-step logic, benchmark Python3 code, complexity breakdown, and offline export!