Given an integer array nums and integer k, find the contiguous subarray of length k with the maximum average value.
This is a classic fixed-size sliding window problem. Track the sum and divide by k at the end.
💡 Pro tip: Understand this problem deeply — don't just memorize the code. Try explaining the approach out loud as if teaching a friend. If you can explain it simply, you truly understand it!
find_max_average([1,12,-5,-6,50,3], 4)
12.75