Ezvor

1708. Largest Subarray Length K

EasyArray Preparing judge… LeetCode
ArrayGreedy

Hints

Hint 1
Search for the largest integer in the range [0, n - k]
Hint 2
This integer is the first element in the subarray. You should take it with the k - 1 elements after it.