Search⌘ K
AI Features

Solution: Contiguous Array

Solution: Contiguous Array asks you to find the maximum length of a contiguous subarray in a binary array containing exactly equal numbers of zeros and ones.

Statement

You are given a binary array nums containing only 0s0s and 1s1s. Your task is to find the maximum length of a contiguous subarray in ...