Problem 1176 · Easy

Diet Plan Performance

Slide a window of k consecutive days across calorie totals and award points by comparing each window sum with a lower and an upper threshold. The visual moves the window along the bars with its running total.

Open the interactive visualisation