You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.