Approach hintTry it first, then revealHide
The sum of every block of k consecutive planks can be obtained in O(1) from prefix sums, or by sliding the block one plank at a time.
The sum of every block of k consecutive planks can be obtained in O(1) from prefix sums, or by sliding the block one plank at a time.