The original problem is : 1373D - Maximum Sum on Even Positions
My Approach
Now the approach was correct if we have to reverse only one subarray.
But what if, we can reverse a number of subarray, suppose K.
How would that be solved?
I came up with the following approach, is it correct?
Approach
Is my approach correct?
Please do share your approach too.
Thank you.
white_square