Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

adaptatron's blog

By adaptatron, 6 months ago, In English

Given an array, you can select 2 adjacent elements, and either increase both of them by 1, or decrease both of them by 1. Can you sort the array after doing the operation any number of times?

I created a video discussing the ideas used in this problem

  • Vote: I like it
  • +3
  • Vote: I do not like it