adaptatron's blog

By adaptatron, 6 hours ago, In English

Given an array, you can reverse any subarray if the minima and maxima of the subarray have different pairities. Can you sort the array after any number of operations?

I created a video discussing the ideas used in this problem

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