Skip to content

Longest Balanced Zeros and Ones

Medium#prefix-sum#first-seen-index~20 min

Free account

Sign in to keep going. It is free.

Every easy problem opens without an account. Medium and hard problems open once you sign in — every problem is free on an account, hints and solutions included.

Sign in with a link

Stuck on the idea rather than the code? Subarray Sums With a Map covers it.