leetle

Daily challenge for 2026-06-08

524. Equal Binary Subarray Count

Given a binary array nums containing only 0s and 1s, return the total number of contiguous subarrays that have an equal number of 0s and 1s.

Example:
Input: nums = [0,1,0]
Output: 2

Run this challenge interactively in Python or JavaScript when the app loads.