white_square's blog

By white_square, history, 21 month(s) ago, In English

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

  • Vote: I like it
  • 0
  • Vote: I do not like it