Problem
Given a list of daily sales nums and a window size k, return the **largest sum of any k consecutive days**.
Example 1
- Input
- nums = [2, 1, 5, 1, 3, 2], k = 3
- Output
- 9
- Why
- 5 + 1 + 3
Example 2
- Input
- nums = [-3, -1, -2], k = 1
- Output
- -1
Constraints
1 <= k <= nums.length <= 10^5-10^4 <= nums[i] <= 10^4