Search⌘ K
AI Features

Diet Plan Performance

Explore how to calculate diet performance points by assessing calorie consumption over every sequence of consecutive days. Learn to implement the sliding window technique to efficiently track calorie totals, compare them to thresholds, and derive performance scores in a coding interview context.

Statement

A dieter consumes calories[i] calories on the i-th day.

Given an integer ...