Problem 1983 · Medium

Widest Pair of Indices With Equal Range Sum

Find the widest index pair whose subarray sums match in two binary arrays. The visual tracks the running difference and records the first occurrence of each value.

Open the interactive visualisation