You are given an array of integers `nums` and a target sum `target`. Find the minimum window subarray that sums up to the `target`. If no such window exists, return an empty array.
Explanation: The minimum window subarray that sums up to 33 is [20,3,10]
Explanation: The minimum window subarray that sums up to 15 is not [4,5], it's [4,5,1,2,3] or [1,2,3,4,5], the statement does not specify if the window has to be continuous, or the smallest window that can sum to the target
Analyze constraints and compute optimal solutions step-by-step.
No dry run loaded.
🚀 Practice this problem
Run code, get AI hints & track streak