644. Maximum Average Subarray II

Given an integer array nums and an integer k, find the contiguous subarray of length at least k that has the maximum average value. Return a floating-point value whose absolute error is strictly less than 10^-5.

Examples
Input: [[1],1]
Output: 1
Hints

644. Maximum Average Subarray II

Given an integer array `nums` and an integer `k`, find the contiguous subarray of length at least `k` that has the maximum average value. Return a floating-point value whose absolute error is strictly less than `10^-5`.