Пожалуйста, прочтите новое правило об ограничении использования AI-инструментов. ×

Блог пользователя white_square

Автор white_square, история, 19 месяцев назад, По-английски

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

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится