profile picture

1 pages tagged with "fruit into baskets"

Sliding Window Pattern - Part 2

July 21, 2021 - 893 words - 5 mins
In the first part covering the sliding window pattern, we saw how it can be applied to solve the maximum subarray sum problem. In this second part of the series, we'll demonstrate how we can use a sliding window of dynamic size, to solve more interesting problems, such as the fruit into baskets prob… read more