Problem 3969 · Easy

Valid Subarrays With Matching Sum Digits I

Grow every subarray from each start index, read the first and last digit of its sum, and count the subarrays where both match the target digit.

Open the interactive visualisation