Omar_Elaraby's blog

By Omar_Elaraby, 2 months ago, In English

I need help to solve this problem from an ICPC Regional Contest

It's easy to find the MEX difference of the subarray [l:r] in O(1), F(l, r). but what makes it hard is to find the maximum MEX difference among all subarrays inside range l:r

Full text and comments »

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