Also reported as Number of Subarrays That Match a Pattern I (LeetCode 3034)
A oa question, reconstructed from 1 candidate report. Sign in to read the write-up.