Day 10 of 250: LeetCode 643 Maximum Average Subarray I | Fixed Window Sliding Explained
When the window size is fixed, you never need to recompute the sum from scratch. Add one element, remove one element, keep sliding. Here is the full breakdown of the fixed-window sliding technique.