Maximum length subarray with equal 1s and -1s
Filed under Visa
The question
Given an array containing only 1s and -1s, return the maximum length of a contiguous subarray having an equal number of 1s and -1s.
No write-up yet. Related questions below have one.
Related Visa questions
Collected from public candidate posts and coding forums. Updated Nov 2026.