Problem B12 · Easy

Sliding Window: Reuse a Running Sum

Find the maximum sum of exactly k consecutive items.

Open the interactive visualisation