Problem 930 · Medium

Binary Subarrays With Sum

Count contiguous runs of a binary array whose total equals a given target. The visual tracks running sums as a window and a tally of matching earlier sums.

Open the interactive visualisation