Create a program to implement a sliding window algorithm to find the maximum sum of a subarray of fixed size.
HardProblem Statement
Create a program to implement a sliding window algorithm to find the maximum sum of a subarray of fixed size.
Sample Input
Array: [1, 3, 2, 5, 1, 1, 2, 3], Window Size: 3
Sample Output
Maximum Sum: 10
Limits
Time: 2s · Memory: 256 MB