Please read the new rule regarding the restriction on the use of AI tools. ×

white_square's blog

By white_square, history, 19 months 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