Subarray Counting

Asked at Databricks · Coding & Leetcode-style Questions · Difficulty: Medium

Imagine you have a list of numbers and a smaller list called pattern, which describes how the numbers should change.

Loading the problem…