Maximum Sum of Two Non-Overlapping Subarrays
Sweep left to right, remembering the best earlier window, to pair each window with the best non-overlapping partner.
Sweep left to right, remembering the best earlier window, to pair each window with the best non-overlapping partner.